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

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

[nongnu] elpa/hl-column 7aa2537f05 5/6: Use specified space to reach pos


From: ELPA Syncer
Subject: [nongnu] elpa/hl-column 7aa2537f05 5/6: Use specified space to reach positions beyond EOL
Date: Sun, 27 Nov 2022 16:00:52 -0500 (EST)

branch: elpa/hl-column
commit 7aa2537f05dba5c533c5aca20efc6aef04e59ddd
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    Use specified space to reach positions beyond EOL
---
 hl-column.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/hl-column.el b/hl-column.el
index 308a1388ff..e3f5abfbeb 100644
--- a/hl-column.el
+++ b/hl-column.el
@@ -122,9 +122,12 @@ and `window-end' respectively while making the overlays.")
                       (overlay-put
                        ov 'after-string
                        (concat
-                        (make-string (max (- column (current-column))
-                                          0)
-                                     ? )
+                        (propertize
+                         " " 'display
+                         `(space :width
+                                 (,(* (frame-char-width)
+                                      (max (- column (current-column))
+                                           0)))))
                         (propertize " " 'face hl-column-face))))
                   (when (< column (current-column))
                     (backward-char))



reply via email to

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