f9e83ad8bd
This commit refactors the "nerdtree#ui_glue#UpDir()" function to fix a bug in the behavior of the 'u' mapping. To reproduce the bug: 1. Open a bookmarked directory with 'o' 2. Press 'u' twice, observing normal behavior 3. Open the same bookmark again with 'o' 4. Press 'u' again, observe the new root is closed The reason for this bug is that the parent node already existed and was closed by the second 'u' press in step two above. This commit fixes this bug by being careful to always open the new root and transplant the child node properly. Also, the internals of the function in question were refactored to make use of valuable NERDTree functions that ultimately help to reduce the amount of code needed for this operation. |
||
---|---|---|
.. | ||
nerdtree | ||
nerdtree.vim |