Skip to content

Commit

Permalink
Update ui_glue.vim (#1014)
Browse files Browse the repository at this point in the history
Fix `<CR>` key map on the bookmark
  • Loading branch information
lkebin authored and PhilRunninger committed Jul 3, 2019
1 parent 06c9d9c commit aef6baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/nerdtree/ui_glue.vim
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ endfunction
"FUNCTION: s:customOpenBookmark() {{{1
" Open bookmark node with the "custom" key, initially <CR>.
function! s:customOpenBookmark(node)
if node.isDirectory
if a:node.path.isDirectory
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().dir)
else
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().file)
Expand Down

0 comments on commit aef6baf

Please sign in to comment.