awful.completion: add more chars to bash_escape
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d02403e6b9
commit
6143e58190
|
@ -40,8 +40,12 @@ function bashcomp_load(src)
|
|||
end
|
||||
|
||||
local function bash_escape(str)
|
||||
res = str:gsub(" ", "\\ ")
|
||||
return res
|
||||
str = str:gsub(" ", "\\ ")
|
||||
str = str:gsub("%[", "\\[")
|
||||
str = str:gsub("%]", "\\]")
|
||||
str = str:gsub("%(", "\\(")
|
||||
str = str:gsub("%)", "\\)")
|
||||
return str
|
||||
end
|
||||
|
||||
--- Use bash completion system to complete command and filename.
|
||||
|
|
Loading…
Reference in New Issue