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

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

[nongnu] elpa/why-this 4552587fd4 49/59: Determine line width correctly


From: ELPA Syncer
Subject: [nongnu] elpa/why-this 4552587fd4 49/59: Determine line width correctly
Date: Sun, 27 Nov 2022 16:02:53 -0500 (EST)

branch: elpa/why-this
commit 4552587fd48263509cbaf2edfbfaf4536049cb20
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    Determine line width correctly
---
 why-this.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/why-this.el b/why-this.el
index 04f378432f..dc79f5060b 100644
--- a/why-this.el
+++ b/why-this.el
@@ -393,7 +393,8 @@ TIME-FORMAT is used to format data."
             (setq line-end (line-end-position (+ begin i))))
           (let ((ov (make-overlay line-end line-end))
                 (type (why-this--overlay-bg-type line-end))
-                (column (- line-end line-begin)))
+                (column (string-width (buffer-substring
+                                       line-begin line-end))))
             (overlay-put ov 'why-this-message (why-this-format-data
                                                why-this-message-format
                                                why-this-message-time-format



reply via email to

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