]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of vscrolled windows
authorEli Zaretskii <eliz@gnu.org>
Thu, 11 Apr 2024 15:34:53 +0000 (18:34 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 16:58:10 +0000 (18:58 +0200)
* src/xdisp.c (redisplay_window): Fix condition for resetting the
window's vscroll.  (Bug#70038)

(cherry picked from commit ea62a14ea3b7f3f6feb0c7c803eeabe3c8499276)

src/xdisp.c

index 140d71129f3da084ea2a98c5937c32fdecc6c831..77d17b91607fc4a670adef4015011dbb10df1894 100644 (file)
@@ -20202,7 +20202,7 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
       /* The vscroll should be preserved in this case, since
         `pixel-scroll-precision-mode' must continue working normally
         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->preserve_vscroll_p = false;