mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
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:
@@ -3315,7 +3315,8 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
||||
if !explicit_pathspec_option
|
||||
call insert(flags, '--no-literal-pathspecs')
|
||||
endif
|
||||
if pager is# 0
|
||||
let no_pager = pager is# 0
|
||||
if no_pager
|
||||
call add(flags, '--no-pager')
|
||||
endif
|
||||
if empty(args) && pager is# -1
|
||||
@@ -3362,7 +3363,6 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
||||
let i += 1
|
||||
endwhile
|
||||
call s:PrepareEnv(env, dir)
|
||||
let no_pager = pager is# 0
|
||||
if pager is# -1
|
||||
let pager = fugitive#PagerFor(args, config)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user