Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fs_scan): ensure parents of all expanded nodes are also scanned #1393

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

pysan3
Copy link
Collaborator

@pysan3 pysan3 commented Mar 12, 2024

On refresh a list of expanded nodes is gathered to decide what paths to scan. However, when an expanded node lives inside a closed parent node, parent node's number of children will be wrong.
This results in unexpected behavior with group_with_dirs, so this fix ensures that all parent nodes are scanned.

For more detailed explanation with screenshots please read: #833.

Fixes: #833

On refresh a list of expanded nodes is gathered to decide what paths to
scan. However, when an expanded node lives inside a closed parent node,
parent node's number of children will be wrong.
This results in unexpected behavior with `group_with_dirs`, so this fix
ensures that all parent nodes are scanned.
Copy link
Contributor

@cseickel cseickel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I forgot about this one...

@cseickel cseickel merged commit 6011391 into nvim-neo-tree:main Mar 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: toggling a parent folder when using group_empty_dirs causes it to be wrongly coalesced
2 participants