Skip to content

Commit

Permalink
remove invalid_tabs before _for_each_state
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Nov 22, 2024
1 parent a77af2e commit 96449c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neo-tree/sources/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ M._get_all_states = function()
end

M._for_each_state = function(source_name, action)
M.dispose_invalid_tabs()
for _, state in ipairs(all_states) do
if source_name == nil or state.name == source_name then
action(state)
Expand Down

0 comments on commit 96449c4

Please sign in to comment.