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

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

[nongnu] elpa/annotate edaafc69a9 052/372: no more broken annotations wi


From: ELPA Syncer
Subject: [nongnu] elpa/annotate edaafc69a9 052/372: no more broken annotations with umlauts
Date: Fri, 4 Feb 2022 16:58:18 -0500 (EST)

branch: elpa/annotate
commit edaafc69a9be28f9656d1b4d3c1c83494681501f
Author: Bastian Bechtold <basti@bastibe.de>
Commit: Bastian Bechtold <basti@bastibe.de>

    no more broken annotations with umlauts
    
    - fixes #29
    - fixes #30
---
 annotate.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/annotate.el b/annotate.el
index aa719a5815..bef6ddf101 100644
--- a/annotate.el
+++ b/annotate.el
@@ -420,8 +420,8 @@ annotation plus the newline."
              "\n"))
       (setq current-pos (+ current-pos available-width -1)))
     ;; strip trailing newline, if any
-    (if (string= (substring lineated -1) "\n")
-        (substring lineated 0 -1)
+    (if (string= (substring lineated (1- (length lineated))) "\n")
+        (substring lineated 0 (1- (length lineated)))
       lineated)))
 
 (defun annotate--annotation-builder ()



reply via email to

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