From 28085dd7d8f739e3d19bab1269f30738ded5f8e1 Mon Sep 17 00:00:00 2001 From: Jason Franklin Date: Tue, 14 Nov 2017 18:31:46 -0500 Subject: [PATCH] Add back support for "b:NERDTreeRoot" --- lib/nerdtree/creator.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim index ec04140c..047939fa 100644 --- 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