Skip to content

Commit

Permalink
fix(filesystem): fix windows path part2
Browse files Browse the repository at this point in the history
  • Loading branch information
konosubakonoakua committed Jan 29, 2024
1 parent 67a1103 commit 8188ff8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/neo-tree/sources/filesystem/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ local follow_internal = function(callback, force_show, async)
end
if not state.path then
return false
else
state.path = utils.normalize_path(state.path)
end
local window_exists = renderer.window_exists(state)
if window_exists then
local node = state.tree and state.tree:get_node()
Expand Down Expand Up @@ -122,6 +119,7 @@ M._navigate_internal = function(state, path, path_to_reveal, callback, async)
log.debug("navigate_internal: path is nil, using cwd")
path = manager.get_cwd(state)
end
path = utils.normalize_path(state.path)
if path ~= state.path then
log.debug("navigate_internal: path changed from ", state.path, " to ", path)
state.path = path
Expand Down

0 comments on commit 8188ff8

Please sign in to comment.