]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`.
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 3 Mar 2024 14:55:30 +0000 (15:55 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 5 Mar 2024 15:33:45 +0000 (16:33 +0100)
(cherry picked from commit 2c2a15bd171ecbf87fdac4405c7ea5f567fcf38a)

lisp/vc/diff-mode.el

index 99ac50c155a08b25b9e6d74eb4e97dc2e1b7e956..ac7d55c8a4683e2705e0a14fcbc9c7f54bf54b52 100644 (file)
@@ -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))))))