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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user