From f93d2c79e5b99f8c7326bfc6bb940fed1212c6a1 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 3 Apr 2013 13:35:31 +0100 Subject: [PATCH] fix NERDTreeCWD Closes #233 --- autoload/nerdtree.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/nerdtree.vim b/autoload/nerdtree.vim index b8f69dc..3da5566 100644 --- a/autoload/nerdtree.vim +++ b/autoload/nerdtree.vim @@ -98,7 +98,7 @@ function! nerdtree#createDefaultBindings() call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapQuit, 'scope': "all", 'callback': s."closeTreeWindow" }) - call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCWD, 'scope': "all", 'callback': s."chRootCwd" }) + call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCWD, 'scope': "all", 'callback': "nerdtree#chRootCwd" }) call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapRefreshRoot, 'scope': "all", 'callback': s."refreshRoot" }) call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapRefresh, 'scope': "Node", 'callback': s."refreshCurrent" }) @@ -1011,7 +1011,7 @@ endfunction " FUNCTION: s:chRootCwd() {{{2 " changes the current root to CWD -function! s:chRootCwd() +function! nerdtree#chRootCwd() try let cwd = g:NERDTreePath.New(getcwd()) catch /^NERDTree.InvalidArgumentsError/