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

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

[elpa] externals/inspector c235e49ee2 1/2: Horizontal line adapts to win


From: ELPA Syncer
Subject: [elpa] externals/inspector c235e49ee2 1/2: Horizontal line adapts to window width
Date: Thu, 9 Mar 2023 15:57:56 -0500 (EST)

branch: externals/inspector
commit c235e49ee281476220f71514ce7d73778353127d
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>

    Horizontal line adapts to window width
    
    See issue #20
---
 inspector.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/inspector.el b/inspector.el
index 9ed59aa30f..05f585440e 100644
--- a/inspector.el
+++ b/inspector.el
@@ -206,7 +206,10 @@ The target width is given by the `pp-max-width' variable."
 
 (defun inspector--insert-horizontal-line (&rest width)
   "Insert an horizontal line with width WIDTH."
-  (insert (make-string (or width (window-text-width)) ?\u2500)))
+  (with-silent-modifications
+    (insert (propertize " "
+                        'display '(space :align-to right-fringe)
+                        'face '(:strike-through t)))))
 
 (defun inspector--insert-label (label)
   "Show a LABEL in inspector buffer."



reply via email to

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