emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2c2a15bd171 2/4: ; * lisp/vc/diff-mode.el (diff--refine-hunk): Es


From: Mattias Engdegård
Subject: master 2c2a15bd171 2/4: ; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`.
Date: Mon, 4 Mar 2024 08:21:55 -0500 (EST)

branch: master
commit 2c2a15bd171ecbf87fdac4405c7ea5f567fcf38a
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    ; * lisp/vc/diff-mode.el (diff--refine-hunk): Escape literal `+`.
---
 lisp/vc/diff-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]