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

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

[nongnu] elpa/annotate e8c9b33b4d 051/372: fix unicode annotations


From: ELPA Syncer
Subject: [nongnu] elpa/annotate e8c9b33b4d 051/372: fix unicode annotations
Date: Fri, 4 Feb 2022 16:58:18 -0500 (EST)

branch: elpa/annotate
commit e8c9b33b4d9bd428c24058a63c0781ba85498242
Author: Bastian Bechtold <Bastian Bechtold>
Commit: Bastian Bechtold <Bastian Bechtold>

    fix unicode annotations
---
 annotate.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/annotate.el b/annotate.el
index 8f45823aab..aa719a5815 100644
--- a/annotate.el
+++ b/annotate.el
@@ -5,7 +5,7 @@
 ;; Maintainer: Bastian Bechtold
 ;; URL: https://github.com/bastibe/annotate.el
 ;; Created: 2015-06-10
-;; Version: 0.4.4
+;; Version: 0.4.5
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -50,7 +50,7 @@
 ;;;###autoload
 (defgroup annotate nil
   "Annotate files without changing them."
-  :version "0.4.4"
+  :version "0.4.5"
   :group 'text)
 
 ;;;###autoload
@@ -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- (string-bytes lineated))) "\n")
-        (substring lineated 0 (1- (string-bytes lineated)))
+    (if (string= (substring lineated -1) "\n")
+        (substring lineated 0 -1)
       lineated)))
 
 (defun annotate--annotation-builder ()



reply via email to

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