Commit 5d36f222 authored by Eli Zaretskii's avatar Eli Zaretskii

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)
parent 72d07d19
......@@ -13179,9 +13179,14 @@ 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. */
SET_FRAME_GARBAGED (XFRAME (w->frame));
/* 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));
}
/* Remember window point. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment