From 8718b368a1ba9a2ab4f2561c9e2df5bee6a895be Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 10 Mar 2018 23:01:51 +0000 Subject: [PATCH] Statusbar render at start of small window --- src/ui/statusbar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/statusbar.c b/src/ui/statusbar.c index ccb00452..e84e3b60 100644 --- a/src/ui/statusbar.c +++ b/src/ui/statusbar.c @@ -263,6 +263,9 @@ status_bar_draw(void) _status_bar_draw_maintext(pos); pos = getmaxx(stdscr) - _tabs_width(); + if (pos < 0) { + pos = 0; + } gint max_tabs = prefs_get_statusbartabs(); int i = 1; for (i = 1; i <= max_tabs; i++) {