about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2018-03-10 22:54:02 +0000
committerJames Booth <boothj5@gmail.com>2018-03-10 22:54:02 +0000
commitb0e70e6caad8b594cdd89bebaeaa3be9b82330b3 (patch)
tree617542c63a7991d3b7a907b75b82cbd88d0e0d38 /src/ui
parent4bf67fb35ac0fa9d78f3fe32d5ef14d146b39b6a (diff)
downloadprofani-tty-b0e70e6caad8b594cdd89bebaeaa3be9b82330b3.tar.gz
Dont show extended tabs when max 0
Diffstat (limited to 'src/ui')
-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 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;