From af3ba1ef4eb2fd9023516bfb303b8f6f97924ecb Mon Sep 17 00:00:00 2001 From: Jason Franklin Date: Fri, 5 Jan 2018 08:23:03 -0500 Subject: [PATCH] Revert the bugfix from pull request #785 The small change here reverts an attempted bugfix from #785. That change resulted in the unintended side-effect of closing other children of the root whenever ":NERDTreeFind" was invoked. This was disruptive (as reported in #793), so a new method must be found to solve the problem of ":NERDTreeFind" not opening newly created files. Fixes #793. --- lib/nerdtree/tree_dir_node.vim | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim index 43285db..03c3545 100644 --- a/lib/nerdtree/tree_dir_node.vim +++ b/lib/nerdtree/tree_dir_node.vim @@ -568,13 +568,6 @@ function! s:TreeDirNode.reveal(path, ...) throw "NERDTree.InvalidArgumentsError: " . a:path.str() . " should be under " . self.path.str() endif - " Refresh "self.children" to avoid missing paths created after this node - " was last opened. If "self.children" is empty, the call to "open()" will - " initialize the children. - if !empty(self.children) - " Silence messages/errors. They were seen on the first open. - silent! call self._initChildren(1) - endif call self.open() if self.path.equals(a:path.getParent())