Skip to content

Commit 8188ff8

Browse files
fix(filesystem): fix windows path part2
1 parent 67a1103 commit 8188ff8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +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)
46-
end
4744
local window_exists = renderer.window_exists(state)
4845
if window_exists then
4946
local node = state.tree and state.tree:get_node()
@@ -122,6 +119,7 @@ M._navigate_internal = function(state, path, path_to_reveal, callback, async)
122119
log.debug("navigate_internal: path is nil, using cwd")
123120
path = manager.get_cwd(state)
124121
end
122+
path = utils.normalize_path(state.path)
125123
if path ~= state.path then
126124
log.debug("navigate_internal: path changed from ", state.path, " to ", path)
127125
state.path = path

0 commit comments

Comments
 (0)