aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorEli Zaretskii2024-10-21 20:42:01 +0300
committerEli Zaretskii2024-10-21 20:42:01 +0300
commit48024096fea5ccdeb79dab5793a6f7a293b95919 (patch)
treeef7eec4ff30254a49566c8fd9e000e176e82a022 /src/window.c
parentc35d6ba9f07b0a8417ef116359049c0dd63e12b5 (diff)
downloademacs-48024096fea5ccdeb79dab5793a6f7a293b95919.tar.gz
emacs-48024096fea5ccdeb79dab5793a6f7a293b95919.zip
Avoid crashes when scrolling images under winner-mode
* src/window.c (window_scroll_pixel_based): Fix calculation of a window's vscroll. (Bug#73933)
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
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)
6017 /* The last line was only partially visible, make it fully 6017 /* The last line was only partially visible, make it fully
6018 visible. */ 6018 visible. */
6019 w->vscroll = (it.last_visible_y 6019 w->vscroll = (it.last_visible_y
6020 - it.current_y + it.max_ascent + it.max_descent); 6020 - (it.current_y + it.max_ascent + it.max_descent));
6021 adjust_frame_glyphs (it.f); 6021 adjust_frame_glyphs (it.f);
6022 } 6022 }
6023 else 6023 else