X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ca11d6acbea616cefabaf376d8d38b9a364958f0..a566b721b960bdb75eb02d801639bf3282b2e271:/widgets/contrib/task.lua
diff --git a/widgets/contrib/task.lua b/widgets/contrib/task.lua
index f721548..27061b9 100644
--- a/widgets/contrib/task.lua
+++ b/widgets/contrib/task.lua
@@ -40,19 +40,19 @@ end
function task:show(scr_pos)
task:hide()
- local f, c_text
+ local f, c_text, scrp
if task.followmouse then
- local scrp = mouse.screen
+ scrp = mouse.screen
else
- local scrp = scr_pos or task.scr_pos
+ scrp = scr_pos or task.scr_pos
end
f = io.popen('task ' .. task.cmdline)
c_text = ""
- .. f:read("*all"):gsub("\n*$", "")
+ .. awful.util.escape(f:read("*all"):gsub("\n*$", ""))
.. ""
f:close()
@@ -75,7 +75,7 @@ function task:prompt_add()
c_text = "\n"
- .. f:read("*all")
+ .. awful.util.escape(f:read("*all"))
.. ""
f:close()
@@ -107,7 +107,7 @@ function task:prompt_search()
c_text = ""
- .. c_text
+ .. awful.util.escape(c_text)
.. ""
end