-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

See attached patch.

Uli
- -- 
- - Buck, when, exactly, did you lose your mind?
- - Three months ago. I woke up one morning married to a pineapple.
  An ugly pineapple... But I loved her!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCAAGBQJMAkGhAAoJECLkKOvLj8sGJnEH/iHriOuiJwDSGq1WVjBtXAIh
JgArsvEJYMcLn2OhxiPQAWiFGt+AHvS3IW9mI5IlmWOxwgzcd4PPnK8x/UE5MniG
qMAmEemvXMXsjhhCM2Q/NjsSmGxfaXtWjGhpGj5761ZjVFDv6RtvBJ+5xnAtv+SG
KWpUPDH9VQX+lo7NSKnQA3t70p3faVbEgOXVMIHma7ycyT8TPdIXMvQ9oI7PD1iU
dhq+oe8SlRv5SLoytDmnxQJjqj6WxDC0zs8evUL1FqJB6LoCvPGk51kH6Pn87oFM
GvnYcHTKFLS0ahNi91OUE4IvyBg8DlKd0f3C7Emg9B2MkaWYi8Y7oOVFn8KFiZg=
=vQ7m
-----END PGP SIGNATURE-----
>From eef78dbdd37efe978c386932ee1eff33e635c739 Mon Sep 17 00:00:00 2001
From: Uli Schlachter <[email protected]>
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 <[email protected]>
---
 lib/awful/widget/tasklist.lua.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in
index 90ee813..b86f754 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("<untitled>")
+        name = name .. (util.escape(c.icon_name) or util.escape(c.name) or util.escape("<untitled>"))
     else
-        name = name .. util.escape(c.name) or util.escape("<untitled>")
+        name = name .. (util.escape(c.name) or util.escape("<untitled>"))
     end
     if capi.client.focus == c then
         bg = bg_focus
-- 
1.7.1

Attachment: 0001-Tasklist-Add-some-missing-parentheses.patch.sig
Description: Binary data

Reply via email to