commit a7d5b3dbc137cf42f723622a5b726e5d5f9376f6
parent cc0777b7921e2aaca670e9bed28e06c669dcef92
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Sat, 5 Jan 2013 11:57:48 +0000
fix the <enter> mapping
It now acts the same as the ActivateNode mapping ('o' by default) again.
This was broken in the big refactor.
Fixes #222
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/autoload/nerdtree.vim b/autoload/nerdtree.vim
@@ -1228,11 +1228,11 @@ endfunction
"FUNCTION: nerdtree#bindMappings() {{{2
function! nerdtree#bindMappings()
- "make <cr> do the same as the default 'o' mapping
- exec "nnoremap <silent> <buffer> <cr> :call <SID>KeyMap_Invoke('". g:NERDTreeMapActivateNode ."')<cr>"
-
call g:NERDTreeKeyMap.BindAll()
+ "make <cr> do the same as the default 'o' mapping
+ exec "nnoremap <silent> <buffer> <cr> :call nerdtree#invokeKeyMap('". g:NERDTreeMapActivateNode ."')<cr>"
+
command! -buffer -nargs=? Bookmark :call <SID>bookmarkNode('<args>')
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 RevealBookmark :call <SID>revealBookmark('<args>')
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 OpenBookmark :call <SID>openBookmark('<args>')