summaryrefslogtreecommitdiff
path: root/stdoutShow.go
diff options
context:
space:
mode:
Diffstat (limited to 'stdoutShow.go')
-rw-r--r--stdoutShow.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdoutShow.go b/stdoutShow.go
index 429294c..9d67d5e 100644
--- a/stdoutShow.go
+++ b/stdoutShow.go
@@ -211,7 +211,9 @@ func (tk *guiWidget) refreshStdout() {
// chop off the last lines in the buffer
chop := len(me.stdout.outputS) - (me.stdout.pager + me.stdout.h)
cur = append(cur, me.stdout.outputS[chop:chop+me.stdout.h]...)
- slices.Reverse(cur)
+ if me.stdout.reverse {
+ slices.Reverse(cur)
+ }
tk.v.Clear()
fmt.Fprintln(tk.v, strings.Join(cur, "\n"))
}