projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8386b
)
; * lisp/calculator.el (calculator-need-3-lines): Fix last change.
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 29 Jun 2023 18:21:28 +0000
(21:21 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 29 Jun 2023 18:21:28 +0000
(21:21 +0300)
lisp/calculator.el
patch
|
blob
|
history
diff --git
a/lisp/calculator.el
b/lisp/calculator.el
index dbfba0b5bb7e136cf52a0207ebe5e02bb90be017..b744f11e1e91e4cbdbe24f1f4a4927e0b19e393c 100644
(file)
--- a/
lisp/calculator.el
+++ b/
lisp/calculator.el
@@
-746,7
+746,8
@@
See the documentation for `calculator-mode' for more information."
;; use 3 lines
(let* ((bx (face-attribute 'mode-line :box))
(lh (plist-get bx :line-width)))
- (and bx (or (not lh) (> (if (listp lh) (cdr lh) lh) 0))))
+ ;; Value of `:line-width' can be either a number or a cons.
+ (and bx (or (not lh) (> (if (consp lh) (cdr lh) lh) 0))))
;; if the mode line has an overline, use 3 lines
(not (memq (face-attribute 'mode-line :overline)
'(nil unspecified)))))))