diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-02 13:58:49 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-02 13:58:49 -0500 |
| commit | 407350e321221d6cd438deab5df52464c02198ab (patch) | |
| tree | 77ddc2662100e451ecc2a3b40317492697640d7f /client | |
| parent | cd33ad54372bd53842fd6e04dbb2859f9ab59f51 (diff) | |
show oddness in command window preview
Diffstat (limited to 'client')
| -rw-r--r-- | client/buffer/buffer.go | 4 | ||||
| -rw-r--r-- | client/cmd_window.go | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/client/buffer/buffer.go b/client/buffer/buffer.go index 3fea156..99d4ef2 100644 --- a/client/buffer/buffer.go +++ b/client/buffer/buffer.go @@ -31,6 +31,10 @@ func (l List) Next() *List { return l.next } +func (l List) IsOdd() bool { + return l.odd +} + func (l List) Msg() Message { return l.msg } diff --git a/client/cmd_window.go b/client/cmd_window.go index 261b550..66245a0 100644 --- a/client/cmd_window.go +++ b/client/cmd_window.go @@ -119,7 +119,7 @@ func (w *cmdWindow) showPreview() { }) tui.Push(msg.Id(), tui.Box {Width: tui.Fill, Height: tui.Children}) - msg.Show(false) + msg.Show(bottom.IsOdd()) tui.Pop() tui.Push("command window border", tui.Box { |
