Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
marty committed Oct 9, 2009
1 parent dc108f5 commit fedd5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/NERD_tree.vim
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fedd5f1

Please sign in to comment.