mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-08 05:04:51 +08:00
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.
This commit is contained in:
1 parent
854a8df0d0
commit
f116dcc8e2
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user