From f116dcc8e21021e6fbfb6b0a9f8f7b9566d933f4 Mon Sep 17 00:00:00 2001 From: Alex Klapheke Date: Wed, 24 Jan 2024 20:09:23 -0500 Subject: [PATCH] Fix misaligned output of :G blame -s Due to a regex not capturing (and concealing) all the spaces behind the current file's line numbers, the close parentheses after the line numbers are misaligned, and the blame buffer is made too wide. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 15d9f84..5f62ff7 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7210,7 +7210,7 @@ function! fugitive#BlameSyntax() abort exec 'syn match FugitiveblameOriginalFile "\s\%(\f\+\D\@<=\|\D\@=\f\+\)\%(\%(\s\+\d\+\)\=\s\%((\|\s*\d\+)\)\)\@=" contained nextgroup=FugitiveblameOriginalLineNumber,FugitiveblameAnnotation skipwhite' (s:HasOpt(flags, '--show-name', '-f') ? '' : conceal) exec 'syn match FugitiveblameOriginalLineNumber "\s*\d\+\%(\s(\)\@=" contained nextgroup=FugitiveblameAnnotation skipwhite' (s:HasOpt(flags, '--show-number', '-n') ? '' : conceal) exec 'syn match FugitiveblameOriginalLineNumber "\s*\d\+\%(\s\+\d\+)\)\@=" contained nextgroup=FugitiveblameShort skipwhite' (s:HasOpt(flags, '--show-number', '-n') ? '' : conceal) - syn match FugitiveblameShort " \d\+)" contained contains=FugitiveblameLineNumber + syn match FugitiveblameShort " \+\d\+)" contained contains=FugitiveblameLineNumber syn match FugitiveblameNotCommittedYet "(\@<=Not Committed Yet\>" contained containedin=FugitiveblameAnnotation hi def link FugitiveblameBoundary Keyword hi def link FugitiveblameHash Identifier