From: Mattias EngdegÄrd Date: Sun, 3 Mar 2024 14:55:30 +0000 (+0100) Subject: ; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c2105d71b91b307111459cf92a755aed4f713ff;p=emacs.git ; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`. (cherry picked from commit 2c2a15bd171ecbf87fdac4405c7ea5f567fcf38a) --- diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 99ac50c155a..ac7d55c8a46 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -2353,7 +2353,7 @@ by `diff-refine-hunk'." (match-end 0) 'diff-refine-removed)) (goto-char middle) - (while (re-search-forward "^\\(?:+.*\n\\)+" end t) + (while (re-search-forward "^\\(?:\\+.*\n\\)+" end t) (diff--refine-propertize (match-beginning 0) (match-end 0) 'diff-refine-added))))))