aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-06-16 15:38:30 +0000
committerKarl Heuer1994-06-16 15:38:30 +0000
commit15495c7324317bb269408dc6d02c99cd82f529d1 (patch)
tree73a262a369ab0ff992f4fe1e355cfbbf34d478cd
parenteb285955800fab61f09a8d5423b077a21dc7e57c (diff)
downloademacs-15495c7324317bb269408dc6d02c99cd82f529d1.tar.gz
emacs-15495c7324317bb269408dc6d02c99cd82f529d1.zip
(redisplay_window): Don't use shortcut if window_end_vpos is out of date.
-rw-r--r--src/xdisp.c3
1 files changed, 3 insertions, 0 deletions
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)
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),