We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1db9ee commit f9c26fcCopy full SHA for f9c26fc
plugin/git.vim
@@ -218,8 +218,7 @@ function! s:DoHighlightGitBlame()
218
for l in range(1, line('$'))
219
let line = getline(l)
220
let [commit, author] = matchlist(line, '\(\x\+\) (\(.\{-}\)\s* \d\d\d\d-\d\d-\d\d')[1:2]
221
- let syntax_name = s:LoadSyntaxRuleFor({ 'author': author })
222
- execute 'syntax match' syntax_name '+\%' . l . 'l.*+'
+ call s:LoadSyntaxRuleFor({ 'author': author })
223
endfor
224
endfunction
225
@@ -240,8 +239,8 @@ function! s:LoadSyntaxRuleFor(params)
240
239
endif
241
execute 'highlight' name printf('ctermfg=%d ctermbg=%d', n1, n2)
242
+ execute 'syntax match' name '"\V\^\x\+ (' . escape(author, '\') . '\.\*"'
243
244
- return name
245
246
247
function! GitDoCommand(args)
0 commit comments