summaryrefslogtreecommitdiff
path: root/eventBindings.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-25 08:56:33 -0500
committerJeff Carr <[email protected]>2025-03-25 13:17:00 -0500
commit36514cbb6818dd06e13b2dff20fa4f0ac67ce545 (patch)
treeb9f454146b7c2c54ea17cf4e60f230e91a18e6b3 /eventBindings.go
parent1552eedc185e85b46498898e68867afaef308301 (diff)
fix arrow up & down on scrolling stdout
Diffstat (limited to 'eventBindings.go')
-rw-r--r--eventBindings.go14
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
}