Always use :terminal for :Git --paginate
References https://github.com/tpope/vim-fugitive/issues/1294
This commit is contained in:
parent
881d72f1af
commit
44ade58ed5
@ -2093,7 +2093,7 @@ function! s:GitExec(line1, line2, range, count, bang, mods, reg, args, dir) abor
|
|||||||
let git = s:UserCommandList(a:dir)
|
let git = s:UserCommandList(a:dir)
|
||||||
if s:HasOpt(a:args, ['add', 'checkout', 'commit', 'stage', 'stash', 'reset'], '-p', '--patch') ||
|
if s:HasOpt(a:args, ['add', 'checkout', 'commit', 'stage', 'stash', 'reset'], '-p', '--patch') ||
|
||||||
\ s:HasOpt(a:args, ['add', 'clean', 'stage'], '-i', '--interactive') ||
|
\ s:HasOpt(a:args, ['add', 'clean', 'stage'], '-i', '--interactive') ||
|
||||||
\ index(['fetch', 'pull', 'push'], a:args[0]) >= 0
|
\ index(['fetch', 'pull', 'push', '--paginate', '-p'], a:args[0]) >= 0
|
||||||
let mods = substitute(s:Mods(a:mods), '\<tab\>', '-tab', 'g')
|
let mods = substitute(s:Mods(a:mods), '\<tab\>', '-tab', 'g')
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
if &autowrite || &autowriteall | silent! wall | endif
|
if &autowrite || &autowriteall | silent! wall | endif
|
||||||
|
Loading…
Reference in New Issue
Block a user