fix error when tag has no name

This commit is contained in:
BZ 2021-11-28 17:19:53 +01:00
parent a6f1df134e
commit 7257802b64
1 changed files with 2 additions and 1 deletions

View File

@ -92,8 +92,9 @@ local menu_move2tag = function(c, scr)
for _, t in pairs(s.tags) do
if t ~= awful.screen.focused().selected_tag then
count = count + 1
local name = t.name or ""
local entry = {
t.index .. ": " .. t.name .. menu_marker(t.selected) .. " ",
t.index .. ": " .. name .. menu_marker(t.selected) .. " ",
function()
c:move_to_tag(t)
end,