diff options
-rw-r--r-- | ui/buffers.go | 4 | ||||
-rw-r--r-- | ui/ui.go | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ui/buffers.go b/ui/buffers.go index db2bc97..bf045ca 100644 --- a/ui/buffers.go +++ b/ui/buffers.go @@ -440,6 +440,10 @@ func (bs *BufferList) DrawHorizontalBufferList(screen tcell.Screen, x0, y0, widt screen.SetContent(x, y0, ' ', nil, tcell.StyleDefault) x++ } + for x < width { + screen.SetContent(x, y0, ' ', nil, tcell.StyleDefault) + x++ + } } func (bs *BufferList) DrawVerticalMemberList(screen tcell.Screen, x0, y0, width, height int, members []irc.Member, offset *int) { @@ -331,7 +331,7 @@ func (ui *UI) drawStatusBar(x0, y, width int) { return } - s := new(StyledStringBuilder) + var s StyledStringBuilder s.SetStyle(tcell.StyleDefault.Foreground(tcell.ColorGray)) s.WriteString("--") |