From d802580c4c296d73c0a56629f69c59ad10ae9f99 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 23 Aug 1997 01:03:37 +0000 Subject: [PATCH] (redisplay_window): Don't try using last_point_x if point is in the left margin of an hscroll'ed window. --- src/xdisp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index c52919cc70e..2c872069108 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1854,7 +1854,11 @@ redisplay_window (window, just_this_one, preserve_echo_area) pos.bufpos = PT; } else if (PT > XFASTINT (w->last_point) - && XFASTINT (w->last_point) > startp && just_this_one) + && XFASTINT (w->last_point) > startp && just_this_one + /* We can't use this if point is in the left margin of a + hscrolled window, because w->last_point_x has been + clipped to the window edges. */ + && !(last_point_x <= 0 && hscroll)) { pos = *compute_motion (XFASTINT (w->last_point), last_point_y, last_point_x, 0, -- 2.39.2