diff options
| author | Karl Heuer | 1994-06-16 15:38:30 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-06-16 15:38:30 +0000 |
| commit | 15495c7324317bb269408dc6d02c99cd82f529d1 (patch) | |
| tree | 73a262a369ab0ff992f4fe1e355cfbbf34d478cd /src | |
| parent | eb285955800fab61f09a8d5423b077a21dc7e57c (diff) | |
| download | emacs-15495c7324317bb269408dc6d02c99cd82f529d1.tar.gz emacs-15495c7324317bb269408dc6d02c99cd82f529d1.zip | |
(redisplay_window): Don't use shortcut if window_end_vpos is out of date.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
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), |