; * lisp/calculator.el (calculator-need-3-lines): Fix last change.
This commit is contained in:
parent
9e8386bdac
commit
65f146cf1c
1 changed files with 2 additions and 1 deletions
|
@ -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)))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue