awful.prompt: word delete splits by separators

Instead of separating only by spaces we also look for:

   { [ ( , . : ; _ - + = @ /

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
koniu 2009-05-10 07:10:35 +01:00 committed by Julien Danjou
parent 2b0de2f23e
commit 1b7c822ed3

View file

@ -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