Skip to content

Commit 960b545

Browse files
authored
fix: allow opening multiple current neo-tree windows (#590)
1 parent 8c7e6d3 commit 960b545

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/neo-tree/command/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ do_show_or_focus = function(args, state, force_navigate)
146146
if not window_exists then
147147
-- Clear the space in case another source is already open
148148
local target_position = args.position or state.current_position or state.window.position
149-
manager.close_all(target_position)
149+
if target_position ~= "current" then
150+
manager.close_all(target_position)
151+
end
150152
end
151153
end
152154

0 commit comments

Comments
 (0)