Fix display of vscrolled windows

* src/xdisp.c (redisplay_window): Fix condition for resetting the
window's vscroll.  (Bug#70038)
This commit is contained in:
Eli Zaretskii 2024-04-11 18:34:53 +03:00
parent 4cefa3c0b1
commit ea62a14ea3

View file

@ -19811,7 +19811,7 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
/* The vscroll should be preserved in this case, since /* The vscroll should be preserved in this case, since
`pixel-scroll-precision-mode' must continue working normally `pixel-scroll-precision-mode' must continue working normally
when a mini-window is resized. (bug#55312) */ when a mini-window is resized. (bug#55312) */
if (!w->preserve_vscroll_p || !window_frozen_p (w)) if (!w->preserve_vscroll_p && !window_frozen_p (w))
w->vscroll = 0; w->vscroll = 0;
w->preserve_vscroll_p = false; w->preserve_vscroll_p = false;