]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix calc-trail-here for first line of trail.
authorAshwin Kafle <ashwin@ashwink.com.np>
Thu, 13 Jun 2024 10:21:38 +0000 (16:06 +0545)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:32:22 +0000 (19:32 +0200)
* 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)

(cherry picked from commit c637adbf32f2566b739eb96e68546201c55540af)

lisp/calc/calc.el

index e6448625ceee3e2ef8543c244fafadc353484a2d..f92e4958e33a1d001b39bf68196b633e6521f2e9 100644 (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)