From f9d542e5ba753b9ca53082ec5c92506f5d7402d7 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Sun, 4 Aug 2024 21:27:04 +0200 Subject: [PATCH] manual closing patch --- surf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surf.c b/surf.c index 246d620..f78f36d 100644 --- a/surf.c +++ b/surf.c @@ -490,7 +490,7 @@ void close_tab(Client *c, const Arg *a) { } 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"); return; }