diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-26 17:21:31 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-26 17:21:31 +0200 |
commit | 2f253f624ac5fd8c90b9ab6a498dd065a4faedd7 (patch) | |
tree | 8af43d379ecfc0b6936a71c627f39c4e180b3966 /ui/ui.go | |
parent | doc: clarify some things (diff) |
status bar drawing: fix off-by-one error
Diffstat (limited to 'ui/ui.go')
-rw-r--r-- | ui/ui.go | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -333,13 +333,7 @@ func (ui *UI) Draw(members []irc.Member) { } func (ui *UI) drawStatusBar(x0, y, width int) { - width-- - - st := tcell.StyleDefault.Dim(true) - - for x := x0; x < x0+width; x++ { - ui.screen.SetContent(x, y, ' ', nil, st) - } + clearArea(ui.screen, x0, y, width, 1) if ui.status == "" { return |