Fix last change in hscroll_window_tree

* src/xdisp.c (hscroll_window_tree): When hscroll suspension is
being disabled, set the frame's garbaged flag less eagerly.
(Bug#29002)
This commit is contained in:
Eli Zaretskii 2017-11-05 20:10:38 +02:00
parent 72d07d1950
commit 5d36f2227f

View file

@ -13179,9 +13179,14 @@ hscroll_window_tree (Lisp_Object window)
Fwindow_old_point (window)))) Fwindow_old_point (window))))
{ {
w->suspend_auto_hscroll = false; w->suspend_auto_hscroll = false;
/* Force thorough redisplay of this window, to show the /* When hscrolling just the current line, and the rest
effect of disabling hscroll suspension immediately. */ of lines were temporarily hscrolled, but no longer
SET_FRAME_GARBAGED (XFRAME (w->frame)); are, force thorough redisplay of this window, to show
the effect of disabling hscroll suspension immediately. */
if (w->min_hscroll == 0 && w->hscroll > 0
&& EQ (Fbuffer_local_value (Qauto_hscroll_mode, w->contents),
Qcurrent_line))
SET_FRAME_GARBAGED (XFRAME (w->frame));
} }
/* Remember window point. */ /* Remember window point. */