And we also don't need that comment anymore, here's updated patch.
From 20c7666a5b7bf2646bba04a8e0a41287c813c634 Mon Sep 17 00:00:00 2001 From: koniu <[email protected]> Date: Thu, 7 May 2009 21:03:04 +0100 Subject: [PATCH] awful.prompt: fix delete
Signed-off-by: koniu <[email protected]> --- lib/awful/prompt.lua.in | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/awful/prompt.lua.in b/lib/awful/prompt.lua.in index 21939d5..9fdac86 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 -- 1.6.2.4
