From 1b7c822ed36f2f76813b1eb9676c8ec0b9019019 Mon Sep 17 00:00:00 2001 From: koniu Date: Sun, 10 May 2009 07:10:35 +0100 Subject: [PATCH] awful.prompt: word delete splits by separators Instead of separating only by spaces we also look for: { [ ( , . : ; _ - + = @ / Signed-off-by: koniu Signed-off-by: Julien Danjou --- lib/awful/prompt.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/prompt.lua.in b/lib/awful/prompt.lua.in index bacbbb820..f4dddf4c8 100644 --- a/lib/awful/prompt.lua.in +++ b/lib/awful/prompt.lua.in @@ -237,7 +237,7 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his local cword_start = 1 local cword_end = 1 while wend < cur_pos do - wend = command:find(" ", wstart) + wend = command:find("[{[(,.:;_-+=@/ ]", wstart) if not wend then wend = #command + 1 end if cur_pos >= wstart and cur_pos <= wend + 1 then cword_start = wstart