From 578d9ead778ab1a330a49d8159c6d6216a332f92 Mon Sep 17 00:00:00 2001 From: sandeepcr2 Date: Sun, 18 Mar 2012 07:10:46 +0530 Subject: [PATCH] prevent-loading-buffer-into-unlisted-windows-added-maximize --- plugin/buffet.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/buffet.vim b/plugin/buffet.vim index d2ce675..2deb25a 100644 --- a/plugin/buffet.vim +++ b/plugin/buffet.vim @@ -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)