summaryrefslogtreecommitdiff
path: root/eventBindingsStdout.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 01:40:57 -0600
committerJeff Carr <[email protected]>2025-02-09 01:40:57 -0600
commitb8b8a409ea77f457bbb3490f5282bf9b3ff88c3e (patch)
treed584d7cefb0bf6a1976d9b16567e25d57621c39b /eventBindingsStdout.go
parent010bd2a33fc64e182fe1190e11d6ef2f841088f8 (diff)
show stdout buffer when it is small
Diffstat (limited to 'eventBindingsStdout.go')
-rw-r--r--eventBindingsStdout.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/eventBindingsStdout.go b/eventBindingsStdout.go
index 4feca78..1eed205 100644
--- a/eventBindingsStdout.go
+++ b/eventBindingsStdout.go
@@ -31,18 +31,15 @@ func theStdout(g *gocui.Gui, v *gocui.View) error {
me.stdout.tk.relocateStdout(me.stdout.lastW, me.stdout.lastH)
me.stdout.outputOnTop = false
setThingsOnTop()
- // me.baseGui.SetViewOnBottom("msg")
- // setBottomBG()
} else {
me.stdout.outputOnTop = true
setThingsOnTop()
- // me.baseGui.SetViewOnTop("msg")
}
return nil
}
func stdoutPgup(g *gocui.Gui, v *gocui.View) error {
- me.stdout.pager -= 40
+ me.stdout.pager -= me.stdout.Height() - 2
if me.stdout.pager < 0 {
me.stdout.pager = 0
}