fix(lua): change some vim.fn.expand() to vim.fs.normalize() (#29583)

Unlike vim.fn.expand(), vim.fs.normalize() doesn't expand wildcards.
This commit is contained in:
zeertzjq
2024-07-09 19:17:50 +08:00
committed by GitHub
parent fb6c059dc5
commit 487f44a6c1
3 changed files with 16 additions and 16 deletions

View File

@@ -136,7 +136,7 @@ function M.open(path)
})
local is_uri = path:match('%w+:')
if not is_uri then
path = vim.fn.expand(path)
path = vim.fs.normalize(path)
end
local cmd --- @type string[]