Fix <CR> not working if active node map is special char such as <Right>

This commit is contained in:
Shane Smith 2014-07-01 20:29:52 -04:00
parent b64942a500
commit 82cd4f5a9f

View File

@ -7,8 +7,8 @@ let g:NERDTreeCreator = s:Creator
"FUNCTION: s:Creator._bindMappings() {{{1
function! s:Creator._bindMappings()
"make <cr> do the same as the default 'o' mapping
exec "nnoremap <silent> <buffer> <cr> :call nerdtree#invokeKeyMap('". g:NERDTreeMapActivateNode ."')<cr>"
"make <cr> do the same as the activate node mapping
exec "nnoremap <silent> <buffer> <cr> :call nerdtree#invokeKeyMap(g:NERDTreeMapActivateNode)<cr>"
call g:NERDTreeKeyMap.BindAll()