summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 9e4af88..5533633 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -400,6 +400,9 @@ func (ui *UI) InputBackSearch() {
func (ui *UI) Resize() {
w, h := ui.screen.Size()
innerWidth := w - 9 - ui.channelWidth - ui.config.NickColWidth - ui.memberWidth
+ if innerWidth <= 0 {
+ innerWidth = 1 // will break display somewhat, but this is an edge case
+ }
ui.e.Resize(innerWidth)
if ui.channelWidth == 0 {
ui.bs.ResizeTimeline(innerWidth, h-3)