Don't allow removing the 'All' tab

This commit is contained in:
Jean-Patrick Guerrero 2023-01-19 18:34:43 +01:00
parent 9e1f608846
commit 74e88acadf
1 changed files with 2 additions and 0 deletions

View File

@ -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