From d5d436bfa3a02397a6e147d11c24a1212ab8e8c6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 23 Mar 2021 15:29:28 -0400 Subject: [PATCH] Tweak default list of paginated commands The only functional change here should be the exclusion of the diff-* plumbing commands. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 704135d..3b411bd 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2537,7 +2537,7 @@ function! fugitive#PagerFor(argv, ...) abort return 0 elseif type(value) == type('') 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] ==# 'am' && s:HasOpt(args, '--show-current-patch')) return 1