commit f93d2c79e5b99f8c7326bfc6bb940fed1212c6a1
parent 40d05ace57fb51cc2c2b2e9eb81c4832ed291630
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Wed, 3 Apr 2013 13:35:31 +0100
fix NERDTreeCWD
Closes #233
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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/