Eliminate speck of repetition around :Git --no-pager

It's not the repetition that bothers me so much as the fact these two
things belong side by side.
This commit is contained in:
Tim Pope
2021-08-20 09:06:44 -04:00
parent b70c10f2bd
commit f674916597

View File

@@ -3315,7 +3315,8 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
if !explicit_pathspec_option if !explicit_pathspec_option
call insert(flags, '--no-literal-pathspecs') call insert(flags, '--no-literal-pathspecs')
endif endif
if pager is# 0 let no_pager = pager is# 0
if no_pager
call add(flags, '--no-pager') call add(flags, '--no-pager')
endif endif
if empty(args) && pager is# -1 if empty(args) && pager is# -1
@@ -3362,7 +3363,6 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
let i += 1 let i += 1
endwhile endwhile
call s:PrepareEnv(env, dir) call s:PrepareEnv(env, dir)
let no_pager = pager is# 0
if pager is# -1 if pager is# -1
let pager = fugitive#PagerFor(args, config) let pager = fugitive#PagerFor(args, config)
endif endif