From 74e88acadfb4c7eb494a726260e8350389dd9f00 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 19 Jan 2023 18:34:43 +0100 Subject: [PATCH] Don't allow removing the 'All' tab --- src/api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api.lua b/src/api.lua index 73f7eb5..aa41f6d 100644 --- a/src/api.lua +++ b/src/api.lua @@ -446,6 +446,8 @@ end function i3.remove_minitab(name) if not true_str(name) then return err "i3.remove_minitab: name missing" + elseif name == "All" then + return err "i3.remove_minitab: removing the 'All' tab is not allowed" end for i = #i3.minitabs, 1, -1 do