Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Fix] closing of collapsible directories in NERDTree plugin #432

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
Loading
from

Conversation

juliuszint
Copy link

@juliuszint juliuszint commented Jul 16, 2022

The NERDTree plugin will under some conditions fail to close a collapisble directory with the error message: "cannot close tree root". This commit replaces the traversing logic for collapsible directories when closing with the latest code from NERDTree.

To reproduce this error use g:NERDTreeCascadeSingleChildDir=0 and g:NERDTreeCascadeOpenSingleChildDir=1. Then the following directory tree:

dir-a
    dir-b
        dir-c
dir-d

Go over dir-c and press "x" to close this node.

Requirements (please check off with 'x')

The NERDTree plugin will under some conditions fail to close a
collapisble directory with the error message: "cannot close tree root".
This commit replaces the traversing logic for collapsible directories
when closing with the latest code from NERDTree.

To reproduce this error use 'g:NERDTreeCascadeSingleChildDir=0' and
'g:NERDTreeCascadeOpenSingleChildDir=1'. Then the following dir tree:

dir-a
    dir-b
        dir-c
dir-d

Go over dir-c and press "x" to close this node.
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.