Highlight only the diff markers (not the text after them).

This commit is contained in:
Phil Jackson 2010-03-10 21:43:11 +00:00
parent f7f383bf1a
commit dddfe3035e

View file

@ -1630,7 +1630,8 @@ Please see the manual for a complete description of Magit.
(let ((n-columns (1- (length (match-string 1))))
(head (match-string 0)))
(magit-with-section head 'hunk
(magit-put-line-property 'face 'magit-diff-hunk-header)
(add-text-properties (match-beginning 0) (match-end 0)
'(face magit-diff-hunk-header))
(forward-line)
(while (not (or (eobp)
(looking-at "^diff\\|^@@")))