Skip to content

Commit

Permalink
prevent-loading-buffer-into-unlisted-windows-added-maximize
Browse files Browse the repository at this point in the history
  • Loading branch information
sras committed Mar 18, 2012
1 parent b57350b commit 578d9ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/buffet.vim
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ function! s:loadbuffer(isonly)
call s:close()
if(s:sourcewindow == -1)
exe "botright vert sbuffer ".l:target
if(a:isonly == 1 && winnr('$')>1)
exe 'only!'
endif
else
call s:switch_buffer(l:target)
if(a:isonly == 1 && winnr('$')>1)
Expand Down

0 comments on commit 578d9ea

Please sign in to comment.