mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03: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
|
elseif a:bang
|
||||||
return mods . 'pedit' . arg . '|wincmd P'
|
return mods . 'pedit' . arg . '|wincmd P'
|
||||||
else
|
else
|
||||||
return mods . (a:count > 0 ? a:count : '') . 'split' . arg
|
return mods . (a:count > 0 ? a:count : '') . 'keepalt split' . arg
|
||||||
endif
|
endif
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr ' . string(v:exception)
|
return 'echoerr ' . string(v:exception)
|
||||||
|
|||||||
Reference in New Issue
Block a user