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
|
end
|
||||||
|
|
||||||
local function bash_escape(str)
|
local function bash_escape(str)
|
||||||
res = str:gsub(" ", "\\ ")
|
str = str:gsub(" ", "\\ ")
|
||||||
return res
|
str = str:gsub("%[", "\\[")
|
||||||
|
str = str:gsub("%]", "\\]")
|
||||||
|
str = str:gsub("%(", "\\(")
|
||||||
|
str = str:gsub("%)", "\\)")
|
||||||
|
return str
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Use bash completion system to complete command and filename.
|
--- Use bash completion system to complete command and filename.
|
||||||
|
|
Loading…
Reference in New Issue