branch: elpa/why-this commit 4552587fd48263509cbaf2edfbfaf4536049cb20 Author: Akib Azmain Turja <a...@disroot.org> Commit: Akib Azmain Turja <a...@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