Skip to content

Commit

Permalink
Merge pull request #769 from lifecrisis/o-map
Browse files Browse the repository at this point in the history
Make the "o" mapping consistent with the "x" mapping.
  • Loading branch information
lifecrisis authored Nov 20, 2017
2 parents e0e36c5 + ac94cd2 commit b89de09
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions autoload/nerdtree/ui_glue.vim
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,15 @@ function! s:activateAll()
endif
endfunction

"FUNCTION: s:activateDirNode() {{{1
"handle the user activating a tree node
function! s:activateDirNode(node)
call a:node.activate()
" FUNCTION: s:activateDirNode(directoryNode) {{{1
function! s:activateDirNode(directoryNode)

if a:directoryNode.isRoot() && a:directoryNode.isOpen
call nerdtree#echo('cannot close tree root')
return
endif

call a:directoryNode.activate()
endfunction

"FUNCTION: s:activateFileNode() {{{1
Expand Down

0 comments on commit b89de09

Please sign in to comment.