Yo,

I've noticed that delete stopped working in prompt recently, this
patch fixes it.

kk
From a6b61838856318fdede51f50df2ec5f5e3f0a273 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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/awful/prompt.lua.in b/lib/awful/prompt.lua.in
index 21939d5..37e3db5 100644
--- a/lib/awful/prompt.lua.in
+++ b/lib/awful/prompt.lua.in
@@ -279,7 +279,7 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his
                     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

Reply via email to