Fix calc-trail-here for first line of trail.

* lisp/calc/calc.el(calc-trail-here): Change 'or' to 'and'
since (bobp) can return true even if the buffer is not empty.
(Bug#71533)
This commit is contained in:
Ashwin Kafle 2024-06-13 16:06:38 +05:45 committed by Eli Zaretskii
parent af6e7ed4c1
commit c637adbf32

View file

@ -2184,7 +2184,7 @@ the United States."
(beginning-of-line)
(if (eobp)
(forward-line -1))
(if (or (bobp) (eobp))
(if (and (bobp) (eobp))
(setq overlay-arrow-position nil) ; trail is empty
(set-marker calc-trail-pointer (point) (current-buffer))
(setq calc-trail-overlay (concat (buffer-substring (point)