Don't clobber alternate buffer on :Gstatus

This commit is contained in:
Tim Pope
2020-02-05 12:48:16 -05:00
parent 18582f4986
commit a95972cefc

View File

@@ -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)