Always use temp file for :Git --no-pager
This commit is contained in:
parent
44ade58ed5
commit
fb3c603ce6
@ -2087,7 +2087,7 @@ function! s:GitExec(line1, line2, range, count, bang, mods, reg, args, dir) abor
|
||||
let cmd = s:StatusCommand(a:line1, a:line2, a:range, a:count, a:bang, a:mods, a:reg, '', [])
|
||||
return empty(cmd) ? 'exe' : cmd
|
||||
endif
|
||||
if a:bang
|
||||
if a:bang || a:args[0] =~# '^-P$\|^--no-pager$'
|
||||
return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, a:args, a:dir)
|
||||
endif
|
||||
let git = s:UserCommandList(a:dir)
|
||||
|
Loading…
Reference in New Issue
Block a user