Commits

portix committed 880d6ce

Check if maximum-tabs > 0 before limiting tabs

  • Participants
  • Parent commits 6bd421d

Comments (0)

Files changed (1)

     if (s->arg_local.i >= 0)
     {
         dwb.misc.max_tabs = s->arg_local.i;
+        if (s->arg_local.i > 0
 #ifndef _HAS_GTK3
-        if (dwb.misc.tab_orientation == TAB_HORIZONTAL)
+                && dwb.misc.tab_orientation == TAB_HORIZONTAL
 #endif
+        )
             dwb_limit_tabs(dwb.misc.max_tabs);
         return STATUS_OK;
     }