Mercurial > emacs
comparison src/xdisp.c @ 7927:e02087efad68
(redisplay_window): Don't use shortcut if window_end_vpos is out of date.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 16 Jun 1994 15:38:30 +0000 |
parents | a9e0390bbc56 |
children | f997d5dc44d8 |
comparison
equal
deleted
inserted
replaced
7926:b87f2c705501 | 7927:e02087efad68 |
---|---|
1139 && PT >= startp && !clip_changed | 1139 && PT >= startp && !clip_changed |
1140 && (just_this_one || XFASTINT (w->width) == FRAME_WIDTH (f)) | 1140 && (just_this_one || XFASTINT (w->width) == FRAME_WIDTH (f)) |
1141 /* Can't use this case if highlighting a region. */ | 1141 /* Can't use this case if highlighting a region. */ |
1142 && !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) | 1142 && !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) |
1143 && NILP (w->region_showing) | 1143 && NILP (w->region_showing) |
1144 /* If end pos is out of date, scroll bar and percentage will be wrong */ | |
1145 && INTEGERP (w->window_end_vpos) | |
1146 && XFASTINT (w->window_end_vpos) < XFASTINT (w->height) | |
1144 && !EQ (window, minibuf_window)) | 1147 && !EQ (window, minibuf_window)) |
1145 { | 1148 { |
1146 pos = *compute_motion (startp, 0, (hscroll ? 1 - hscroll : 0), | 1149 pos = *compute_motion (startp, 0, (hscroll ? 1 - hscroll : 0), |
1147 PT, height + 1, 10000, width, hscroll, | 1150 PT, height + 1, 10000, width, hscroll, |
1148 pos_tab_offset (w, startp), w); | 1151 pos_tab_offset (w, startp), w); |