fix: improper file name escaping (#530)

This commit is contained in:
lucascool12 2024-12-10 17:08:43 +01:00 committed by GitHub
parent 9a59256c8e
commit 7a55ede5e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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