From 1615cff82a2d19488f2315fa2a7a2fa7570abb03 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 30 May 2010 12:37:56 +0200 Subject: [PATCH] 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 Signed-off-by: Julien Danjou --- lib/awful/widget/tasklist.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in index 90ee81360..b86f7544d 100644 --- a/lib/awful/widget/tasklist.lua.in +++ b/lib/awful/widget/tasklist.lua.in @@ -42,9 +42,9 @@ local function tasklist_label(c, args) if c.maximized_horizontal then name = name .. '⬌' end if c.maximized_vertical then name = name .. "⬍" end if c.minimized then - name = name .. util.escape(c.icon_name) or util.escape(c.name) or util.escape("") + name = name .. (util.escape(c.icon_name) or util.escape(c.name) or util.escape("")) else - name = name .. util.escape(c.name) or util.escape("") + name = name .. (util.escape(c.name) or util.escape("")) end if capi.client.focus == c then bg = bg_focus