Skip to content

Commit 38e5e21

Browse files
fix(filesystem): fix windows path part2
1 parent 67a1103 commit 38e5e21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lua/neo-tree/sources/filesystem/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ local follow_internal = function(callback, force_show, async)
4141
end
4242
if not state.path then
4343
return false
44-
else
45-
state.path = utils.normalize_path(state.path)
4644
end
4745
local window_exists = renderer.window_exists(state)
4846
if window_exists then
@@ -122,6 +120,8 @@ M._navigate_internal = function(state, path, path_to_reveal, callback, async)
122120
log.debug("navigate_internal: path is nil, using cwd")
123121
path = manager.get_cwd(state)
124122
end
123+
path = utils.normalize_path(path)
124+
state.path = utils.normalize_path(state.path)
125125
if path ~= state.path then
126126
log.debug("navigate_internal: path changed from ", state.path, " to ", path)
127127
state.path = path

0 commit comments

Comments
 (0)