diff options
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 } |
