nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 04dbae2cb4df3b92e0b62803f1a7486ec6c19fc5
parent af13711fac56e18118f07b0e2e1b20c817b38fff
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Fri,  6 Jan 2012 15:02:55 +0000

remove s:openEntrySplit as it is not needed anymore

Diffstat:
Mplugin/NERD_tree.vim | 22+---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git 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)