manual closing patch

This commit is contained in:
WanderingPenwing 2024-08-04 21:27:04 +02:00
parent 8a4f3b5625
commit f9d542e5ba

2
surf.c
View file

@ -490,7 +490,7 @@ void close_tab(Client *c, const Arg *a) {
} }
int index = a->i; int index = a->i;
if (index >= g_list_length(c->tabs)) { if (index >= g_list_length(c->tabs) && index != -1) {
g_print("tried to close tab that does not exist\n"); g_print("tried to close tab that does not exist\n");
return; return;
} }