nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 93356cd92ba914af24cf8c4db0ef2fa1deac3769
parent b6e3c0db30aea2875da5d9214f05b6586ac7af7c
Author: Jason Franklin <lifecrisis@users.noreply.github.com>
Date:   Tue, 14 Nov 2017 18:36:09 -0500

Add back support for "b:NERDTreeRoot" (#765)


Diffstat:
Mlib/nerdtree/creator.vim | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim
@@ -109,6 +109,12 @@ endfunction
 " FUNCTION: s:Creator._createNERDTree(path) {{{1
 function! s:Creator._createNERDTree(path, type)
     let b:NERDTree = g:NERDTree.New(a:path, a:type)
+
+    " TODO: This assignment is kept for compatibility reasons.  Many other
+    " plugins use "b:NERDTreeRoot" instead of "b:NERDTree.root".  Remove this
+    " assignment in the future.
+    let b:NERDTreeRoot = b:NERDTree.root
+
     call b:NERDTree.root.open()
 endfunction