mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Fix calc tests when running noninteractively
This error was introduced in 8e1376a391.
* lisp/calc/calc.el (calc--header-line): Prevent size from being negative.
This commit is contained in:
parent
e2391d486e
commit
b5fe447480
1 changed files with 1 additions and 1 deletions
|
|
@ -1399,7 +1399,7 @@ border of the two cases."
|
|||
;; fudge for trail is: -3 (added to len-long)
|
||||
;; (width ) for trail
|
||||
(factor (if (> width (+ len-long fudge)) len-long len-short))
|
||||
(size (/ (- width factor) 2))
|
||||
(size (max (/ (- width factor) 2) 0))
|
||||
(fill (make-string size ?-))
|
||||
(pre (replace-regexp-in-string ".$" " " fill))
|
||||
(post (replace-regexp-in-string "^." " " fill)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue