awful.widget.taglist: Fix label.all()

awful.util.escape() may return nil

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Ali Polatel 2009-05-04 17:18:58 +03:00 committed by Julien Danjou
parent 024ee30fe5
commit 3fca4e0677
1 changed files with 2 additions and 2 deletions

View File

@ -137,9 +137,9 @@ function label.all(t, args)
if not tag.getproperty(t, "icon_only") then
if fg_color then
text = text .. "<span color='"..util.color_strip_alpha(fg_color).."'>"
text = " " .. text..util.escape(t.name).." </span>"
text = " " .. text.. (util.escape(t.name) or "") .." </span>"
else
text = text .. " " .. util.escape(t.name) .. " "
text = text .. " " .. (util.escape(t.name) or "") .. " "
end
end
text = text .. "</span>"