Revert "fix: use fnameescape to escape the path for use in cmds"

This reverts commit 58d7c8d178.
This commit is contained in:
kiyan
2021-06-04 09:02:13 +02:00
parent f5931bd96b
commit 8cf639c821

View File

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