1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Statusbar render at start of small window

This commit is contained in:
James Booth 2018-03-10 23:01:51 +00:00
parent b0e70e6caa
commit 8718b368a1

View File

@ -263,6 +263,9 @@ status_bar_draw(void)
_status_bar_draw_maintext(pos); _status_bar_draw_maintext(pos);
pos = getmaxx(stdscr) - _tabs_width(); pos = getmaxx(stdscr) - _tabs_width();
if (pos < 0) {
pos = 0;
}
gint max_tabs = prefs_get_statusbartabs(); gint max_tabs = prefs_get_statusbartabs();
int i = 1; int i = 1;
for (i = 1; i <= max_tabs; i++) { for (i = 1; i <= max_tabs; i++) {