diff options
| author | Jeff Carr <[email protected]> | 2025-03-25 08:56:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-25 13:17:00 -0500 |
| commit | 36514cbb6818dd06e13b2dff20fa4f0ac67ce545 (patch) | |
| tree | b9f454146b7c2c54ea17cf4e60f230e91a18e6b3 /eventBindings.go | |
| parent | 1552eedc185e85b46498898e68867afaef308301 (diff) | |
fix arrow up & down on scrolling stdout
Diffstat (limited to 'eventBindings.go')
| -rw-r--r-- | eventBindings.go | 14 |
1 files changed, 2 insertions, 12 deletions
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 } |
