diff options
| author | Jeff Carr <[email protected]> | 2025-09-03 01:56:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-03 01:56:01 -0500 |
| commit | 86aa5fb001bb873da1a491391f12b17a1a1990a0 (patch) | |
| tree | 772cb747816a01d109d7f870389bce582eec39eb /stdoutShow.go | |
| parent | 262426fb448d8bd616d1ed687f3da7e1ed2dc6a2 (diff) | |
reverse in STDOUT is no longer the defaultv0.22.59v0.22.58v0.22.57v0.22.56v0.22.55v0.22.54v0.22.53v0.22.52v0.22.51v0.22.50v0.22.49v0.22.48
Diffstat (limited to 'stdoutShow.go')
| -rw-r--r-- | stdoutShow.go | 4 |
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")) } |
