vim-devicons icon indicating copy to clipboard operation
vim-devicons copied to clipboard

[Fix] closing of collapsible directories in NERDTree plugin

Open juliuszint opened this issue 1 year ago • 0 comments

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')

juliuszint avatar Jul 16 '22 10:07 juliuszint