Skip to content

Commit 704dfe3

Browse files
committed
fix: attempt to fix occasional cwd issues
1 parent 6bf37df commit 704dfe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/neo-tree/sources/manager.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ M.dir_changed = function(source_name)
238238
if state.path and cwd == state.path then
239239
return
240240
end
241-
if state.path and renderer.window_exists(state) then
241+
if renderer.window_exists(state) then
242242
M.navigate(state, cwd)
243243
else
244-
state.path = cwd
244+
state.path = nil
245245
state.dirty = true
246246
end
247247
end)

0 commit comments

Comments
 (0)