diff options
author | James Booth <boothj5@gmail.com> | 2018-03-10 23:01:51 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2018-03-10 23:01:51 +0000 |
commit | 8718b368a1ba9a2ab4f2561c9e2df5bee6a895be (patch) | |
tree | 877af33d190baa4f06925e6fc743540937175091 | |
parent | b0e70e6caad8b594cdd89bebaeaa3be9b82330b3 (diff) | |
download | profani-tty-8718b368a1ba9a2ab4f2561c9e2df5bee6a895be.tar.gz |
Statusbar render at start of small window
-rw-r--r-- | src/ui/statusbar.c | 3 |
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++) { |