mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Don't clobber alternate buffer on :Gstatus
This commit is contained in:
@@ -2547,7 +2547,7 @@ function! s:StatusCommand(line1, line2, range, count, bang, mods, reg, arg, args
|
||||
elseif a:bang
|
||||
return mods . 'pedit' . arg . '|wincmd P'
|
||||
else
|
||||
return mods . (a:count > 0 ? a:count : '') . 'split' . arg
|
||||
return mods . (a:count > 0 ? a:count : '') . 'keepalt split' . arg
|
||||
endif
|
||||
catch /^fugitive:/
|
||||
return 'echoerr ' . string(v:exception)
|
||||
|
||||
Reference in New Issue
Block a user