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,8 +13179,13 @@ hscroll_window_tree (Lisp_Object window)
Fwindow_old_point (window))))
{
w->suspend_auto_hscroll = false;
/* Force thorough redisplay of this window, to show the
effect of disabling hscroll suspension immediately. */
/* When hscrolling just the current line, and the rest
of lines were temporarily hscrolled, but no longer
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));
}