From a7d5b3dbc137cf42f723622a5b726e5d5f9376f6 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 5 Jan 2013 11:57:48 +0000 Subject: [PATCH] fix the mapping It now acts the same as the ActivateNode mapping ('o' by default) again. This was broken in the big refactor. Fixes #222 --- autoload/nerdtree.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/nerdtree.vim b/autoload/nerdtree.vim index f1d94a7..7622302 100644 --- a/autoload/nerdtree.vim +++ b/autoload/nerdtree.vim @@ -1228,11 +1228,11 @@ endfunction "FUNCTION: nerdtree#bindMappings() {{{2 function! nerdtree#bindMappings() - "make do the same as the default 'o' mapping - exec "nnoremap :call KeyMap_Invoke('". g:NERDTreeMapActivateNode ."')" - call g:NERDTreeKeyMap.BindAll() + "make do the same as the default 'o' mapping + exec "nnoremap :call nerdtree#invokeKeyMap('". g:NERDTreeMapActivateNode ."')" + command! -buffer -nargs=? Bookmark :call bookmarkNode('') command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 RevealBookmark :call revealBookmark('') command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 OpenBookmark :call openBookmark('')