Update ui_glue.vim (#1014)

Fix `<CR>` key map on the bookmark
This commit is contained in:
Kebin Liu 2019-07-03 23:11:25 +08:00 committed by Phil Runninger
parent 06c9d9c963
commit aef6baf6e2

View File

@ -95,7 +95,7 @@ endfunction
"FUNCTION: s:customOpenBookmark() {{{1 "FUNCTION: s:customOpenBookmark() {{{1
" Open bookmark node with the "custom" key, initially <CR>. " Open bookmark node with the "custom" key, initially <CR>.
function! s:customOpenBookmark(node) function! s:customOpenBookmark(node)
if node.isDirectory if a:node.path.isDirectory
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().dir) call a:node.activate(b:NERDTree, s:initCustomOpenArgs().dir)
else else
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().file) call a:node.activate(b:NERDTree, s:initCustomOpenArgs().file)