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

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

[nongnu] elpa/telephone-line 541c7d80d9 103/195: Corrected axis algorith


From: ELPA Syncer
Subject: [nongnu] elpa/telephone-line 541c7d80d9 103/195: Corrected axis algorithm
Date: Wed, 5 Jan 2022 02:59:30 -0500 (EST)

branch: elpa/telephone-line
commit 541c7d80d936ffcc75b5a38fe506366e9a146c5c
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>

    Corrected axis algorithm
---
 telephone-line-utils.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/telephone-line-utils.el b/telephone-line-utils.el
index 0ad4051fdf..e5eed5e8b0 100644
--- a/telephone-line-utils.el
+++ b/telephone-line-utils.el
@@ -149,7 +149,7 @@ color1 and color2."
 
 (cl-defmethod telephone-line-separator-width ((obj telephone-line-separator))
   (or (oref obj forced-width)
-      (ceiling (telephone-line-separator-height obj) 2)))
+      (1- (ceiling (telephone-line-separator-height obj) 2))))
 
 (defclass telephone-line-subseparator (telephone-line-separator)
   ((pattern-func :initarg :pattern-func
@@ -162,7 +162,7 @@ color1 and color2."
          (normalized-axis (telephone-line--normalize-axis
                            (mapcar (oref obj axis-func)
                                    (telephone-line-create-axis height))))
-         (range (1+ (seq-max normalized-axis)))
+         (range (seq-max normalized-axis))
          (scaling-factor (/ width (float range))))
     (mapcar (lambda (x)
               (funcall (oref obj pattern-func)



reply via email to

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