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