]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_window): Don't use shortcut if window_end_vpos is out of date.
authorKarl Heuer <kwzh@gnu.org>
Thu, 16 Jun 1994 15:38:30 +0000 (15:38 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 16 Jun 1994 15:38:30 +0000 (15:38 +0000)
src/xdisp.c

index da05044a963704b510380ec2d700a5c2cc8acf8d..7d06ead0a6993e94c9f405db4840b516db75309a 100644 (file)
@@ -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),