]> git.eshelyaron.com Git - emacs.git/commit
Fontify one-line diffs without the final newline (bug#33567)
authorJuri Linkov <juri@linkov.net>
Tue, 18 Dec 2018 22:55:15 +0000 (00:55 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 18 Dec 2018 22:55:15 +0000 (00:55 +0200)
commit8cbbf4ba25bef2c6c1b525aa380a1cd3f0b0d012
treee08309ab9586f4798660b7e194a68966a63031b8
parentcdaaaf2e1bd1f8ad2784ffc8265aa642da2d1190
Fontify one-line diffs without the final newline (bug#33567)

* lisp/vc/diff-mode.el (diff-hunk-text, diff-syntax-fontify-hunk):
Skip lines beginning with backslash like "\ No newline at end of file".
(diff-syntax-fontify-hunk): Use string-trim-right.
For one-line diffs use 1 explicitly in the list of line numbers.
lisp/vc/diff-mode.el