summaryrefslogtreecommitdiff
path: root/community/tilda/tab-count-fix.patch
blob: b0e1522a1fe99f68c8867138ea658bdcf5df2be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/tilda_window.c
+++ b/src/tilda_window.c
@@ -378,7 +378,7 @@ static gboolean goto_tab_generic (tilda_window *tw, guint tab_number)
 
     if (g_list_length (tw->terms) > (tab_number-1))
     {
-        goto_tab (tw, g_list_length (tw->terms) - tab_number);
+        goto_tab (tw, tab_number - 1);
         return TRUE;
     }