Skip to content

Commit 24decee

Browse files
committed
use normalize_path on windows and linux
1 parent 7e38925 commit 24decee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lua/neo-tree/utils/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,8 @@ M.normalize_path = function(path)
864864
path = vim.fs.normalize(path, { win = true })
865865
-- Now use backslashes, as expected by the rest of Neo-Tree's code
866866
path = path:gsub("/", M.path_separator)
867+
else
868+
path = vim.fs.normalize(path)
867869
end
868870
return path
869871
end

0 commit comments

Comments
 (0)