mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
Avoid crashes when scrolling images under winner-mode
* src/window.c (window_scroll_pixel_based): Fix calculation of a window's vscroll. (Bug#73933)
This commit is contained in:
parent
c35d6ba9f0
commit
48024096fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user