emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/annotate 936389e36a 316/372: - prevented asking for annota


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 936389e36a 316/372: - prevented asking for annotation when trying to annotate a newline character.
Date: Fri, 4 Feb 2022 16:59:15 -0500 (EST)

branch: elpa/annotate
commit 936389e36a3043d849bb2f805d9b8f3869649158
Author: cage <cage-dev@twistfold.it>
Commit: cage <cage-dev@twistfold.it>

    - prevented asking for annotation when trying to annotate a newline 
character.
---
 annotate.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/annotate.el b/annotate.el
index ec7695992a..a94379bee0 100644
--- a/annotate.el
+++ b/annotate.el
@@ -630,7 +630,9 @@ specified by `from' and `to'."
        (t
         (if (annotate--position-on-annotated-text-p (point))
             (signal 'annotate-annotate-region-overlaps nil)
-          (create-new-annotation))))
+          (let ((char-maybe-newline (char-after)))
+            (when (not (char-equal char-maybe-newline ?\n))
+              (create-new-annotation))))))
       (set-buffer-modified-p t))))
 
 (cl-defun annotate-goto-next-annotation (&key (startingp t))



reply via email to

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