diff options
Diffstat (limited to 'app/msgviewer.go')
-rw-r--r-- | app/msgviewer.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/msgviewer.go b/app/msgviewer.go index a78daa3a..8760bf74 100644 --- a/app/msgviewer.go +++ b/app/msgviewer.go @@ -556,6 +556,10 @@ func NewPartViewer( if term != nil { term.OnStart = func() { + if term.ctx != nil { + filter.Env = append(filter.Env, fmt.Sprintf("COLUMNS=%d", term.ctx.Window().Width)) + filter.Env = append(filter.Env, fmt.Sprintf("LINES=%d", term.ctx.Window().Height)) + } pv.attemptCopy() } } |