From b0e70e6caad8b594cdd89bebaeaa3be9b82330b3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 10 Mar 2018 22:54:02 +0000 Subject: Dont show extended tabs when max 0 --- src/ui/statusbar.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui') 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; -- cgit 1.4.1-2-gfad0