about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--xxxterm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 1b8fa83..95257f3 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1793,6 +1793,9 @@ delete_tab(struct tab *t)
 
 	free(t->user_agent);
 	g_free(t);
+
+	TAILQ_FOREACH(t, &tabs, entry)
+		t->tab_id = gtk_notebook_page_num(notebook, t->vbox);
 }
 
 void