fix: improper file name escaping (#530)
This commit is contained in:
parent
9a59256c8e
commit
7a55ede5e7
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ end
|
|||
---@param filename string
|
||||
---@return string
|
||||
M.escape_filename = function(filename)
|
||||
local ret = filename:gsub("([%%#$])", "\\%1")
|
||||
local ret = vim.fn.fnameescape(filename)
|
||||
return ret
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue