mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
Merge pull request #769 from lifecrisis/o-map
Make the "o" mapping consistent with the "x" mapping.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user