Fix pager usage for :Git reflog

Resolves: https://github.com/tpope/vim-fugitive/issues/1772
This commit is contained in:
Tim Pope
2021-06-19 19:38:27 -04:00
parent 857c107e5a
commit 79e2bd381a

View File

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