From 55a050e5659b7f3eba7380f34509c3a6dd739c71 Mon Sep 17 00:00:00 2001 From: Andrey Starodubtsev Date: Sun, 10 Aug 2025 11:32:40 +0300 Subject: [PATCH] Open `git stash list` in split `git stash list` accepts the same options as `git log`, and should be handled in similar way. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7f2f60267..7fbb54fc1 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3781,7 +3781,7 @@ function! fugitive#PagerFor(argv, ...) abort elseif type(value) == type('') return value elseif args[0] =~# '^\%(branch\|config\|diff\|grep\|log\|range-diff\|shortlog\|show\|tag\|whatchanged\)$' || - \ (args[0] ==# 'stash' && get(args, 1, '') ==# 'show') || + \ (args[0] ==# 'stash' && get(args, 1, '') =~# '\(show\|list\)') || \ (args[0] ==# 'reflog' && get(args, 1, '') !~# '^\%(expire\|delete\|exists\)$') || \ (args[0] ==# 'am' && s:HasOpt(args, '--show-current-patch')) return 1