Skip to content

Commit c2a9e81

Browse files
fix(filesystem): fix filesystem path on windows platform (#1327)
Co-authored-by: cseickel <[email protected]>
1 parent df4cb47 commit c2a9e81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neo-tree/sources/filesystem/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ local follow_internal = function(callback, force_show, async)
3030
if vim.bo.filetype == "neo-tree" or vim.bo.filetype == "neo-tree-popup" then
3131
return false
3232
end
33-
local path_to_reveal = manager.get_path_to_reveal()
33+
local path_to_reveal = utils.normalize_path(manager.get_path_to_reveal())
3434
if not utils.truthy(path_to_reveal) then
3535
return false
3636
end
@@ -120,6 +120,7 @@ M._navigate_internal = function(state, path, path_to_reveal, callback, async)
120120
log.debug("navigate_internal: path is nil, using cwd")
121121
path = manager.get_cwd(state)
122122
end
123+
path = utils.normalize_path(path)
123124
if path ~= state.path then
124125
log.debug("navigate_internal: path changed from ", state.path, " to ", path)
125126
state.path = path

0 commit comments

Comments
 (0)