branch: elpa/annotate commit edaafc69a9be28f9656d1b4d3c1c83494681501f Author: Bastian Bechtold <ba...@bastibe.de> Commit: Bastian Bechtold <ba...@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 ()