branch: elpa/telephone-line
commit 541c7d80d936ffcc75b5a38fe506366e9a146c5c
Author: Daniel Bordak <[email protected]>
Commit: Daniel Bordak <[email protected]>
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)