mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23: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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user