From 87d31a3d94a26c733e3efda9dd2f60688332bc5a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 09:00:40 -0600 Subject: stub in code to page large windows --- eventBindingsStdout.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'eventBindingsStdout.go') 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 -- cgit v1.2.3