From 79e2bd381ad6e7f3d70ce4a8ec9f3f107b40f053 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 19 Jun 2021 19:38:27 -0400 Subject: [PATCH] Fix pager usage for :Git reflog Resolves: https://github.com/tpope/vim-fugitive/issues/1772 --- autoload/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 3c1279c..cb8a514 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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