From: Karl Heuer Date: Thu, 16 Jun 1994 15:38:30 +0000 (+0000) Subject: (redisplay_window): Don't use shortcut if window_end_vpos is out of date. X-Git-Tag: emacs-19.34~7926 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=15495c7324317bb269408dc6d02c99cd82f529d1;p=emacs.git (redisplay_window): Don't use shortcut if window_end_vpos is out of date. --- diff --git a/src/xdisp.c b/src/xdisp.c index da05044a963..7d06ead0a69 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1141,6 +1141,9 @@ redisplay_window (window, just_this_one) /* 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),