mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Fix erroneous temp buffer on non-listing :Git branch
This commit is contained in:
@@ -2381,8 +2381,9 @@ function! fugitive#PagerFor(argv, ...) abort
|
|||||||
endif
|
endif
|
||||||
if args[0] ==# 'config' && (s:HasOpt(args, '-e', '--edit') ||
|
if args[0] ==# 'config' && (s:HasOpt(args, '-e', '--edit') ||
|
||||||
\ !s:HasOpt(args, '--list', '--get-all', '--get-regexp', '--get-urlmatch')) ||
|
\ !s:HasOpt(args, '--list', '--get-all', '--get-regexp', '--get-urlmatch')) ||
|
||||||
\ args[0] =~# '^\%(tag\|branch\)$' && (s:HasOpt(args, '--edit-description', '--unset-upstream') ||
|
\ args[0] =~# '^\%(tag\|branch\)$' && (
|
||||||
\ len(filter(args[1:-1], 'v:val =~# "^[^-]\|^--set-upstream-to="')) &&
|
\ s:HasOpt(args, '--edit-description', '--unset-upstream', '-m', '-M', '--move', '-c', '-C', '--copy', '-d', '-D', '--delete') ||
|
||||||
|
\ len(filter(args[1:-1], 'v:val =~# "^[^-]\\|^--set-upstream-to="')) &&
|
||||||
\ !s:HasOpt(args, '--contains', '--no-contains', '--merged', '--no-merged', '--points-at'))
|
\ !s:HasOpt(args, '--contains', '--no-contains', '--merged', '--no-merged', '--points-at'))
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user