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