summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/buffers.go4
-rw-r--r--ui/ui.go2
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) {
diff --git a/ui/ui.go b/ui/ui.go
index 99eac48..9926fe7 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -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("--")