]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix scrolling of the stack window in Calc
authorEli Zaretskii <eliz@gnu.org>
Sat, 9 Apr 2022 13:30:23 +0000 (16:30 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 9 Apr 2022 13:30:23 +0000 (16:30 +0300)
* lisp/calc/calc.el (calc-align-stack-window): Fix off-by-one
error in computing the window-start point.  (Bug#54800)

lisp/calc/calc.el

index 81677d78e7aabf2c0a0a4ca33bffa991468624f8..2f9afa02af8cd950d7b32a0b69d2cc2ec07f21bc 100644 (file)
@@ -1815,7 +1815,7 @@ See calc-keypad for details."
          (if win
              (progn
                (calc-cursor-stack-index 0)
-               (vertical-motion (- 2 (window-height win)))
+               (vertical-motion (- 3 (window-height win)))
                (set-window-start win (point)))))
        (calc-cursor-stack-index 0)
        (if (looking-at " *\\.$")