diff options
Diffstat (limited to 'runtime/lua/vim/secure.lua')
| -rw-r--r-- | runtime/lua/vim/secure.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/secure.lua b/runtime/lua/vim/secure.lua index 4a89139679..63cf4a8776 100644 --- a/runtime/lua/vim/secure.lua +++ b/runtime/lua/vim/secure.lua @@ -110,6 +110,7 @@ function M.read(path) if not fullpath then return nil end + fullpath = vim.fs.normalize(fullpath) -- Ensure "/" slashes, even on Windows. local trust = read_trust() @@ -218,6 +219,7 @@ function M.trust(opts) if not fullpath then return false, string.format('invalid path: %s', path) end + fullpath = vim.fs.normalize(fullpath) -- Ensure "/" slashes, even on Windows. local trust = read_trust() |
