From 84a285772201d077274dfc932524bbdf0d56848a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 9 Apr 2022 16:30:23 +0300 Subject: [PATCH] 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) --- lisp/calc/calc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 81677d78e7a..2f9afa02af8 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -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 " *\\.$") -- 2.39.2