diff options
author | James Booth <boothj5@gmail.com> | 2018-03-10 22:54:02 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2018-03-10 22:54:02 +0000 |
commit | b0e70e6caad8b594cdd89bebaeaa3be9b82330b3 (patch) | |
tree | 617542c63a7991d3b7a907b75b82cbd88d0e0d38 | |
parent | 4bf67fb35ac0fa9d78f3fe32d5ef14d146b39b6a (diff) | |
download | profani-tty-b0e70e6caad8b594cdd89bebaeaa3be9b82330b3.tar.gz |
Dont show extended tabs when max 0
-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 3515b0a7..ccb00452 100644 --- a/src/ui/statusbar.c +++ b/src/ui/statusbar.c @@ -302,6 +302,9 @@ static int _status_bar_draw_extended_tabs(int pos) { gint max_tabs = prefs_get_statusbartabs(); + if (max_tabs == 0) { + return pos; + } if (g_hash_table_size(statusbar->tabs) > max_tabs) { gboolean is_current = statusbar->current_tab > max_tabs; |