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

INFO: could potentially lead to issues, might need to revert
This commit is contained in:
kiyan
2021-06-04 08:25:13 +02:00
parent 747bce0c66
commit 58d7c8d178

View File

@@ -3,7 +3,7 @@ local uv = vim.loop
local api = vim.api
function M.path_to_matching_str(path)
return path:gsub('(%-)', '(%%-)'):gsub('(%.)', '(%%.)'):gsub('(%_)', '(%%_)')
return vim.fn.fnameescape(path)
end
function M.echo_warning(msg)