diff options
| author | Richard M. Stallman | 1997-08-23 01:03:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-23 01:03:37 +0000 |
| commit | d802580c4c296d73c0a56629f69c59ad10ae9f99 (patch) | |
| tree | 8657c7502e282b3b55d14ffc8151703c9dcacf06 /src | |
| parent | 513063cf94bdd85e6a551797017d864c64d1c6d3 (diff) | |
| download | emacs-d802580c4c296d73c0a56629f69c59ad10ae9f99.tar.gz emacs-d802580c4c296d73c0a56629f69c59ad10ae9f99.zip | |
(redisplay_window): Don't try using last_point_x
if point is in the left margin of an hscroll'ed window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
| 1854 | pos.bufpos = PT; | 1854 | pos.bufpos = PT; |
| 1855 | } | 1855 | } |
| 1856 | else if (PT > XFASTINT (w->last_point) | 1856 | else if (PT > XFASTINT (w->last_point) |
| 1857 | && XFASTINT (w->last_point) > startp && just_this_one) | 1857 | && XFASTINT (w->last_point) > startp && just_this_one |
| 1858 | /* We can't use this if point is in the left margin of a | ||
| 1859 | hscrolled window, because w->last_point_x has been | ||
| 1860 | clipped to the window edges. */ | ||
| 1861 | && !(last_point_x <= 0 && hscroll)) | ||
| 1858 | { | 1862 | { |
| 1859 | pos = *compute_motion (XFASTINT (w->last_point), | 1863 | pos = *compute_motion (XFASTINT (w->last_point), |
| 1860 | last_point_y, last_point_x, 0, | 1864 | last_point_y, last_point_x, 0, |