changeset 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 b87f2c705501
children e8eb27a1d94e
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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),