fix error when tag has no name
This commit is contained in:
parent
a6f1df134e
commit
7257802b64
3
init.lua
3
init.lua
|
@ -92,8 +92,9 @@ local menu_move2tag = function(c, scr)
|
||||||
for _, t in pairs(s.tags) do
|
for _, t in pairs(s.tags) do
|
||||||
if t ~= awful.screen.focused().selected_tag then
|
if t ~= awful.screen.focused().selected_tag then
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
local name = t.name or ""
|
||||||
local entry = {
|
local entry = {
|
||||||
t.index .. ": " .. t.name .. menu_marker(t.selected) .. " ",
|
t.index .. ": " .. name .. menu_marker(t.selected) .. " ",
|
||||||
function()
|
function()
|
||||||
c:move_to_tag(t)
|
c:move_to_tag(t)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue