From 3849e6d747c7cc0e0864c1a1665e4d2e39a78a0d Mon Sep 17 00:00:00 2001 From: koniu Date: Thu, 7 May 2009 21:03:04 +0100 Subject: [PATCH] awful.prompt: fix delete Signed-off-by: koniu Signed-off-by: Julien Danjou --- lib/awful/prompt.lua.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/awful/prompt.lua.in b/lib/awful/prompt.lua.in index 21939d5d..9fdac86e 100644 --- a/lib/awful/prompt.lua.in +++ b/lib/awful/prompt.lua.in @@ -278,8 +278,7 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his command = command:sub(1, cur_pos - 2) .. command:sub(cur_pos) cur_pos = cur_pos - 1 end - -- That's DEL - elseif key:byte() == 127 then + elseif key == "Delete" then command = command:sub(1, cur_pos - 1) .. command:sub(cur_pos + 1) elseif key == "Left" then cur_pos = cur_pos - 1