From 8038ee60a9ecbba8f762b43622695e9e5bff21bd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 13 Aug 2019 17:12:24 -0400 Subject: [PATCH] Fix -1 effectively canceling --reverse Is there a way to apply a limit at the print level rather than the query level? --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 73b65cc..203dfbd 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4596,7 +4596,7 @@ function! s:BlameCommitFileLnum(...) abort if commit =~# '^0\+$' let commit = '' elseif line !~# '^\^' && has_key(state, 'blame_reverse_end') - let commit = get(s:LinesError('log', '--pretty=format:%H', '-1', '--ancestry-path', '--reverse', commit . '..' . state.blame_reverse_end)[0], 0, commit) + let commit = get(s:LinesError('log', '--pretty=format:%H', '--ancestry-path', '--reverse', commit . '..' . state.blame_reverse_end)[0], 0, commit) endif let lnum = +matchstr(line, ' \zs\d\+\ze \%((\| *\d\+)\)') let path = matchstr(line, '^\^\=\x* \+\%(\d\+ \+\d\+ \+\)\=\zs.\{-\}\ze\s\+\%(\%( \d\+ \)\@