mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
fix(vim.fs.abspath): correctly handle UNC paths
This commit is contained in:
@@ -725,7 +725,7 @@ function M.abspath(path)
|
||||
prefix, path = split_windows_path(path)
|
||||
end
|
||||
|
||||
if vim.startswith(path, '/') then
|
||||
if prefix == '//' or vim.startswith(path, '/') then
|
||||
-- Path is already absolute, do nothing
|
||||
return prefix .. path
|
||||
end
|
||||
|
Reference in New Issue
Block a user