emacs-diffs
[Top][All Lists]
Advanced

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

emacs-30 48024096fea: Avoid crashes when scrolling images under winner-m


From: Eli Zaretskii
Subject: emacs-30 48024096fea: Avoid crashes when scrolling images under winner-mode
Date: Mon, 21 Oct 2024 13:43:08 -0400 (EDT)

branch: emacs-30
commit 48024096fea5ccdeb79dab5793a6f7a293b95919
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Avoid crashes when scrolling images under winner-mode
    
    * src/window.c (window_scroll_pixel_based): Fix calculation of a
    window's vscroll.  (Bug#73933)
---
 src/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/window.c b/src/window.c
index dba2d6a3523..a2b40cb197f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6017,7 +6017,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, 
bool whole, bool noerror)
              /* The last line was only partially visible, make it fully
                 visible.  */
              w->vscroll = (it.last_visible_y
-                           - it.current_y + it.max_ascent + it.max_descent);
+                           - (it.current_y + it.max_ascent + it.max_descent));
              adjust_frame_glyphs (it.f);
            }
          else



reply via email to

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