From 04dbae2cb4df3b92e0b62803f1a7486ec6c19fc5 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 6 Jan 2012 15:02:55 +0000 Subject: [PATCH] remove s:openEntrySplit as it is not needed anymore --- plugin/NERD_tree.vim | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 95f629c..f170f30 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -3486,25 +3486,6 @@ function! s:jumpToSibling(currentNode, forward) endif endfunction - - -" FUNCTION: s:openEntrySplit(vertical, forceKeepWindowOpen) {{{2 -function! s:openEntrySplit(vertical, forceKeepWindowOpen) - let treenode = s:TreeFileNode.GetSelected() - if treenode != {} - if a:vertical - call treenode.openVSplit() - else - call treenode.openSplit() - endif - if !a:forceKeepWindowOpen - call s:closeTreeIfQuitOnOpen() - endif - else - call s:echo("select a node first") - endif -endfunction - "FUNCTION: s:promptToDelBuffer(bufnum, msg){{{2 "prints out the given msg and, if the user responds by pushing 'y' then the "buffer with the given bufnum is deleted @@ -4035,11 +4016,10 @@ function! s:handleMiddleMouse() if curNode.path.isDirectory call s:openExplorer(curNode) else - call s:openEntrySplit(0,0) + call curNode.open({'split': 'h'}) endif endfunction - " FUNCTION: s:jumpToFirstChild() {{{2 " wrapper for the jump to child method function! s:jumpToFirstChild(node)