-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
A bug with NERDTreeCascadeOpenSingleChildDir #547
Comments
Very annoying. I'm trying to disable cascade altogether, but it seems there is no way. |
Now it is needed to press 'C' - (change tree root to the selected dir) + Enter to be able opening such a directory. |
I am having the same issue. I went back to NerdTree 4.2 for now which works fine. |
Click "x" key map(close parent of node) on the line of 'file.txt' will also reproduce this bug @scrooloose . |
@juanibiapina , does your PR #558 solve this issue? |
It doesn't sove the issue at all. It only adds the option to deactivate the feature that has the bug. |
I have the same issue. |
This is a confirmed bug. The same as in issue #526. A fix is in progress. |
Issues preservim#547 and preservim#526 reported a problem with the "open()" method in the "TreeDirNode" class. Specifically, opening a cascade in the NERDTree will perform the opening operation on the tail of the cascade. This is a problem when other operations (such as the "u" mapping) close intermediate cascaded directories, which causes opening the tail to have no effect (other than toggling the arrow). Here, the "open()" method was modified to open all directories in a cascade whenever the tail is opened. This is the only reasonable fix for this type of problem. Fixes preservim#547 and fixes preservim#526.
ANNOUNCEMENT: Everyone experiencing this bug can try the fix in pull request #720. It should repair this problem without any side effects. The code is currently under review. |
Steps to reproduce:
It appears that the node cannot be open again from now.
The text was updated successfully, but these errors were encountered: