Permalink
Browse files

minor refactor

  • Loading branch information...
1 parent dc108f5 commit fedd5f11620d9de3a08d7d0186fd4a1257bba6b5 @scrooloose committed Oct 9, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/NERD_tree.vim
View
@@ -2658,7 +2658,7 @@ function! s:centerView()
endif
endfunction
"FUNCTION: s:closeTree() {{{2
-"Closes the NERD tree window
+"Closes the primary NERD tree window for this tab
function! s:closeTree()
if !s:isTreeOpen()
throw "NERDTree.NoTreeFoundError: no NERDTree is open"
@@ -3580,7 +3580,7 @@ function! s:closeTreeWindow()
exec "buffer " . b:NERDTreePreviousBuf
else
if winnr("$") > 1
- wincmd c
+ call s:closeTree()
else
call s:echo("Cannot close last window")
endif

0 comments on commit fedd5f1

Please sign in to comment.