Skip to content

Commit

Permalink
fix: improper file name escaping (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascool12 authored Dec 10, 2024
1 parent 9a59256 commit 7a55ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/oil/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7a55ede

Please sign in to comment.