mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Fix pager usage for :Git reflog
Resolves: https://github.com/tpope/vim-fugitive/issues/1772
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user