Merge pull request #769 from lifecrisis/o-map
Make the "o" mapping consistent with the "x" mapping.
This commit is contained in:
commit
b89de09810
@ -90,10 +90,15 @@ function! s:activateAll()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: s:activateDirNode() {{{1
|
" FUNCTION: s:activateDirNode(directoryNode) {{{1
|
||||||
"handle the user activating a tree node
|
function! s:activateDirNode(directoryNode)
|
||||||
function! s:activateDirNode(node)
|
|
||||||
call a:node.activate()
|
if a:directoryNode.isRoot() && a:directoryNode.isOpen
|
||||||
|
call nerdtree#echo('cannot close tree root')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
call a:directoryNode.activate()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: s:activateFileNode() {{{1
|
"FUNCTION: s:activateFileNode() {{{1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user