Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/src/xdisp.c Thu Jun 16 15:14:30 1994 +0000 +++ b/src/xdisp.c Thu Jun 16 15:38:30 1994 +0000 @@ -1141,6 +1141,9 @@ /* Can't use this case if highlighting a region. */ && !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) && NILP (w->region_showing) + /* If end pos is out of date, scroll bar and percentage will be wrong */ + && INTEGERP (w->window_end_vpos) + && XFASTINT (w->window_end_vpos) < XFASTINT (w->height) && !EQ (window, minibuf_window)) { pos = *compute_motion (startp, 0, (hscroll ? 1 - hscroll : 0),