manual closing patch
This commit is contained in:
parent
8a4f3b5625
commit
f9d542e5ba
2
surf.c
2
surf.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue