Tasklist: Add some missing parentheses

"a .. b or c" is equivalent to "(a .. b) or c", but we want "a .. (b or c)".
This bug caused an "attempted to concatenate a nil value" error message.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Uli Schlachter 2010-05-30 12:37:56 +02:00 committed by Julien Danjou
parent 2f3f84c994
commit 1615cff82a
1 changed files with 2 additions and 2 deletions

View File

@ -42,9 +42,9 @@ local function tasklist_label(c, args)
if c.maximized_horizontal then name = name .. '' end if c.maximized_horizontal then name = name .. '' end
if c.maximized_vertical then name = name .. "" end if c.maximized_vertical then name = name .. "" end
if c.minimized then if c.minimized then
name = name .. util.escape(c.icon_name) or util.escape(c.name) or util.escape("<untitled>") name = name .. (util.escape(c.icon_name) or util.escape(c.name) or util.escape("<untitled>"))
else else
name = name .. util.escape(c.name) or util.escape("<untitled>") name = name .. (util.escape(c.name) or util.escape("<untitled>"))
end end
if capi.client.focus == c then if capi.client.focus == c then
bg = bg_focus bg = bg_focus