Skip to content

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