emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 84a2857722: Fix scrolling of the stack window in Calc


From: Eli Zaretskii
Subject: emacs-28 84a2857722: Fix scrolling of the stack window in Calc
Date: Sat, 9 Apr 2022 09:30:53 -0400 (EDT)

branch: emacs-28
commit 84a285772201d077274dfc932524bbdf0d56848a
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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 81677d78e7..2f9afa02af 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 " *\\.$")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]