about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2018-03-10 23:01:51 +0000
committerJames Booth <boothj5@gmail.com>2018-03-10 23:01:51 +0000
commit8718b368a1ba9a2ab4f2561c9e2df5bee6a895be (patch)
tree877af33d190baa4f06925e6fc743540937175091
parentb0e70e6caad8b594cdd89bebaeaa3be9b82330b3 (diff)
downloadprofani-tty-8718b368a1ba9a2ab4f2561c9e2df5bee6a895be.tar.gz
Statusbar render at start of small window
-rw-r--r--src/ui/statusbar.c3
1 files changed, 3 insertions, 0 deletions
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++) {