Tweak default list of paginated commands

The only functional change here should be the exclusion of the diff-*
plumbing commands.
This commit is contained in:
Tim Pope
2021-03-23 15:29:28 -04:00
parent 53df837ac6
commit d5d436bfa3

View File

@@ -2537,7 +2537,7 @@ function! fugitive#PagerFor(argv, ...) abort
return 0 return 0
elseif type(value) == type('') elseif type(value) == type('')
return value return value
elseif args[0] =~# 'diff\%(tool\)\@!\|log\|^show$\|^config$\|^branch$\|^tag$\|^whatchanged$' || elseif args[0] =~# '^\%(branch\|config\|diff\|grep\|log\|range-diff\|reflog\|shortlog\|show\|tag\|whatchanged\)$' ||
\ (args[0] ==# 'stash' && get(args, 1, '') ==# 'show') || \ (args[0] ==# 'stash' && get(args, 1, '') ==# 'show') ||
\ (args[0] ==# 'am' && s:HasOpt(args, '--show-current-patch')) \ (args[0] ==# 'am' && s:HasOpt(args, '--show-current-patch'))
return 1 return 1