From 36514cbb6818dd06e13b2dff20fa4f0ac67ce545 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 25 Mar 2025 08:56:33 -0500 Subject: fix arrow up & down on scrolling stdout --- eventBindings.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'eventBindings.go') diff --git a/eventBindings.go b/eventBindings.go index 9819706..acc25a8 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -109,22 +109,12 @@ func theDarkness(g *gocui.Gui, v *gocui.View) error { } func wheelsUp(g *gocui.Gui, v *gocui.View) error { - // log.Info("private wheels up") - me.stdout.pager -= 2 - if me.stdout.pager < 0 { - me.stdout.pager = 0 - } - me.stdout.tk.refreshStdout() + stdoutWheelsUp() return nil } func wheelsDown(g *gocui.Gui, v *gocui.View) error { - // log.Info("you've landed") - me.stdout.pager += 2 - if me.stdout.pager > len(me.stdout.outputS) { - me.stdout.pager = len(me.stdout.outputS) - } - me.stdout.tk.refreshStdout() + stdoutWheelsDown() return nil } -- cgit v1.2.3