]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix mishaps
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 19 Feb 2022 18:45:04 +0000 (13:45 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 19 Feb 2022 18:45:04 +0000 (13:45 -0500)
commit910cdcf8c3939b84f0eaeb178119dd32f867411d
tree758f0990a5c5c9662825f83abae81cee26533aca
parent7e4ef09aa0d9587677d44284af72ceb3f44061b7
* lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix mishaps

This reverts the last change so it also applies to non-git diffs again.
Instead, we're now more careful not to mis-recognize file headers as
addition/removal lines.
In addition to that, mark the file header such that it's
re-font-locked all at once, and to still recognize it after
`diff-reverse-direction`.
lisp/vc/diff-mode.el