Mercurial > emacs
changeset 19478:b2544c0eada8
(redisplay_window): Don't try using last_point_x
if point is in the left margin of an hscroll'ed window.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 23 Aug 1997 01:03:37 +0000 |
parents | a9629283bc4c |
children | 3c201ec148a4 |
files | src/xdisp.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Aug 23 00:57:01 1997 +0000 +++ b/src/xdisp.c Sat Aug 23 01:03:37 1997 +0000 @@ -1854,7 +1854,11 @@ 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,