Revert "fix: use fnameescape to escape the path for use in cmds"
This reverts commit 58d7c8d178.
This commit is contained in:
@@ -3,7 +3,7 @@ local uv = vim.loop
|
|||||||
local api = vim.api
|
local api = vim.api
|
||||||
|
|
||||||
function M.path_to_matching_str(path)
|
function M.path_to_matching_str(path)
|
||||||
return vim.fn.fnameescape(path)
|
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)'):gsub('(%_)', '(%%_)')
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.echo_warning(msg)
|
function M.echo_warning(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user