---
core/wmii.lua | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/core/wmii.lua b/core/wmii.lua
index ee00e4b..e8c8a8b 100644
--- a/core/wmii.lua
+++ b/core/wmii.lua
@@ -726,7 +726,7 @@ local key_handlers = {
["Mod1-p"] = function (key)
local prog = prog_menu()
if prog then
- prog_hist:add(prog:match("(%w+)"))
+ prog_hist:add(prog:match("([^ ]+)"))
log (" executing: " .. prog)
os.execute (prog .. " &")
end
--
1.5.4.3
Yeah, that's a headslapper. Guess nobody else has run enough commands
with a - in them from alt-p to trigger the bug.
Acked-by: Dave O'Neill <d...@dmo.ca>
--