Skip to content

Commit 4ba04f6

Browse files
authored
fix: remove invalid_tabs before _for_each_state (#1604)
1 parent a77af2e commit 4ba04f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/neo-tree/sources/manager.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ M._get_all_states = function()
5151
end
5252

5353
M._for_each_state = function(source_name, action)
54+
M.dispose_invalid_tabs()
5455
for _, state in ipairs(all_states) do
5556
if source_name == nil or state.name == source_name then
5657
action(state)

0 commit comments

Comments
 (0)