Mercurial > emacs
comparison src/xdisp.c @ 19061:e2be10e9bf9d
(redisplay_window): Fix one-off in handling
scroll-conservatively for scrolling up.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 01 Aug 1997 00:12:35 +0000 |
parents | 59ccb8fd4ee1 |
children | 1ba82399f2b1 |
comparison
equal
deleted
inserted
replaced
19060:7b362a9bf8e9 | 19061:e2be10e9bf9d |
---|---|
2031 struct position pos; | 2031 struct position pos; |
2032 pos = *compute_motion (PT, 0, 0, 0, | 2032 pos = *compute_motion (PT, 0, 0, 0, |
2033 startp, XFASTINT (w->height), 0, | 2033 startp, XFASTINT (w->height), 0, |
2034 XFASTINT (w->width), XFASTINT (w->hscroll), | 2034 XFASTINT (w->width), XFASTINT (w->hscroll), |
2035 pos_tab_offset (w, startp), w); | 2035 pos_tab_offset (w, startp), w); |
2036 if (pos.vpos >= scroll_conservatively) | 2036 if (pos.vpos > scroll_conservatively) |
2037 goto scroll_fail_1; | 2037 goto scroll_fail_1; |
2038 | 2038 |
2039 pos = *vmotion (startp, - pos.vpos - this_scroll_margin, w); | 2039 pos = *vmotion (startp, - pos.vpos - this_scroll_margin, w); |
2040 | 2040 |
2041 if (! NILP (Vwindow_scroll_functions)) | 2041 if (! NILP (Vwindow_scroll_functions)) |