Skip to content

Commit 3674113

Browse files
fix: Open git stash list in split
`git stash list` accepts the same options as `git log`, and should be handled in similar way.
1 parent 61b51c0 commit 3674113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/fugitive.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3781,7 +3781,7 @@ function! fugitive#PagerFor(argv, ...) abort
37813781
elseif type(value) == type('')
37823782
return value
37833783
elseif args[0] =~# '^\%(branch\|config\|diff\|grep\|log\|range-diff\|shortlog\|show\|tag\|whatchanged\)$' ||
3784-
\ (args[0] ==# 'stash' && get(args, 1, '') ==# 'show') ||
3784+
\ (args[0] ==# 'stash' && get(args, 1, '') =~# '\(show\|list\)') ||
37853785
\ (args[0] ==# 'reflog' && get(args, 1, '') !~# '^\%(expire\|delete\|exists\)$') ||
37863786
\ (args[0] ==# 'am' && s:HasOpt(args, '--show-current-patch'))
37873787
return 1

0 commit comments

Comments
 (0)