diff options
| author | Jeff Carr <[email protected]> | 2025-02-09 09:00:40 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 09:00:40 -0600 |
| commit | 87d31a3d94a26c733e3efda9dd2f60688332bc5a (patch) | |
| tree | ed32eade7a266e645e10a639aac55220b4c5594f /eventBindingsStdout.go | |
| parent | c5d9522c0b1d176ecea10b9347c65dc6d99e898e (diff) | |
stub in code to page large windows
Diffstat (limited to 'eventBindingsStdout.go')
| -rw-r--r-- | eventBindingsStdout.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eventBindingsStdout.go b/eventBindingsStdout.go index 1eed205..f48ed77 100644 --- a/eventBindingsStdout.go +++ b/eventBindingsStdout.go @@ -67,6 +67,14 @@ func stdoutArrowDown(g *gocui.Gui, v *gocui.View) error { } func stdoutPgdn(g *gocui.Gui, v *gocui.View) error { + win := findWindowUnderMouse() + if win != nil { + if win.full.Height() > 50 { + log.Info("paging through really large window pager =", win.window.pager) + win.window.pager += 10 + return nil + } + } me.stdout.pager += 10 tk := me.stdout.tk |
