diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2020-10-19 15:55:42 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2020-10-19 15:55:42 +0200 |
commit | 75d5148288c705dd306243e1e7c726dbe3c4ea2c (patch) | |
tree | 911cabb5914fe4da8dc2f02ceaaf3ced5c05cac5 | |
parent | Allow moving the timeline to the right (diff) |
Collapse bufferlist in one block
-rw-r--r-- | ui/buffers.go | 4 | ||||
-rw-r--r-- | ui/ui.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/buffers.go b/ui/buffers.go index ecc31ea..1347635 100644 --- a/ui/buffers.go +++ b/ui/buffers.go @@ -416,8 +416,8 @@ func (bs *BufferList) idx(title string) int { } func (bs *BufferList) Draw(screen tcell.Screen) { - bs.list[bs.current].DrawLines(screen, 0, bs.width, bs.height-3, bs.nickColWidth) - bs.drawStatusBar(screen, bs.height-3) + bs.list[bs.current].DrawLines(screen, 0, bs.width, bs.height-2, bs.nickColWidth) + bs.drawStatusBar(screen, bs.height-2) bs.drawTitleList(screen, bs.height-1) } @@ -173,12 +173,12 @@ func (ui *UI) InputEnter() (content string) { func (ui *UI) Resize() { w, h := ui.screen.Size() ui.e.Resize(w) - ui.bs.Resize(w, h) + ui.bs.Resize(w, h-1) } func (ui *UI) Draw() { _, h := ui.screen.Size() - ui.e.Draw(ui.screen, h-2) + ui.e.Draw(ui.screen, h-1) ui.bs.Draw(ui.screen) ui.screen.Show() } |