From 11691b38bb2a3a806f373b8f35da207725dc22dc Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 13 Aug 2019 21:23:33 -0400 Subject: [PATCH] Allow :Gblame ^boundary to use scrollbind --- autoload/fugitive.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7cc4da0..6172a9f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4672,7 +4672,13 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, args) abort echohl NONE return '' endif - elseif arg !~# '^-' + elseif arg ==# '--' + if i + 1 < len(flags) + call extend(files, remove(flags, i + 1, -1)) + endif + call remove(flags, i) + break + elseif arg !~# '^-' && (s:HasOpt(flags, '--not') || arg !~# '^\^') if index(flags, '--') >= 0 call add(commits, remove(flags, i)) continue @@ -4691,12 +4697,6 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, args) abort endtry call add(files, remove(flags, i)) continue - elseif arg ==# '--' - if i + 1 < len(flags) - call extend(files, remove(flags, i + 1, -1)) - endif - call remove(flags, i) - break endif let i += 1 endwhile