• Juri Linkov's avatar
    Fontify one-line diffs without the final newline (bug#33567) · 8cbbf4ba
    Juri Linkov authored
    * 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.
    8cbbf4ba
diff-mode.el 109 KB