From 9fcac5b380fc36ce0f46bccf72e8aaef3554135f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 17 Aug 2022 10:18:12 -0400 Subject: [PATCH] Fix broken blame maps This was accidentally mapping `0` or `1` instead. Switch to :exe while we're at it. Resolves: https://github.com/tpope/vim-fugitive/issues/2031 --- autoload/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 8b5b399..827c265 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7205,9 +7205,9 @@ function! s:BlameMaps(is_ftplugin) abort call s:Map('n', 'o', ':exe BlameCommit("split")', '', ft) call s:Map('n', 'O', ':exe BlameCommit("tabedit")', '', ft) call s:Map('n', 'p', ':exe BlameCommit("pedit")', '', ft) - call s:Map('n', '.', ": =substitute(BlameCommitFileLnum()[0],'^$','@','')", ft) - call s:Map('n', '(', "-", ft) - call s:Map('n', ')', "+", ft) + exe s:Map('n', '.', ": =substitute(BlameCommitFileLnum()[0],'^$','@','')", '', ft) + exe s:Map('n', '(', "-", '', ft) + exe s:Map('n', ')', "+", '', ft) call s:Map('n', 'A', ":exe 'vertical resize '.(linechars('.\\{-\\}\\ze [0-9:/+-][0-9:/+ -]* \\d\\+)')+1+v:count)", '', ft) call s:Map('n', 'C', ":exe 'vertical resize '.(linechars('^\\S\\+')+1+v:count)", '', ft) call s:Map('n', 'D', ":exe 'vertical resize '.(linechars('.\\{-\\}\\ze\\d\\ze\\s\\+\\d\\+)')+1-v:count)", '', ft)