Highlight only the diff markers (not the text after them).
This commit is contained in:
parent
f7f383bf1a
commit
dddfe3035e
1 changed files with 2 additions and 1 deletions
3
magit.el
3
magit.el
|
@ -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\\|^@@")))
|
||||
|
|
Loading…
Reference in a new issue