1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

Fix scrolling of the stack window in Calc

* lisp/calc/calc.el (calc-align-stack-window): Fix off-by-one
error in computing the window-start point.  (Bug#54800)
This commit is contained in:
Eli Zaretskii 2022-04-09 16:30:23 +03:00
parent 9dd44505b1
commit 84a2857722

View 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 " *\\.$")