diff options
| author | Karl Heuer | 1995-12-21 16:52:06 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-12-21 16:52:06 +0000 |
| commit | 2c081c2d63ae9807b288dcac1d02ed2129a2940e (patch) | |
| tree | 023d38e4938e1e052fb58db84bce1bb5708c6bf8 | |
| parent | fcd4533c72fe5713642c68438351df6eddd8112c (diff) | |
| download | emacs-2c081c2d63ae9807b288dcac1d02ed2129a2940e.tar.gz emacs-2c081c2d63ae9807b288dcac1d02ed2129a2940e.zip | |
(redisplay_window): Don't do the scroll_step thing
if startp is outside the accessible part of the buffer.
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index c64dd89f81d..aa7226cfd8a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1679,7 +1679,8 @@ redisplay_window (window, just_this_one) | |||
| 1679 | 1679 | ||
| 1680 | /* Try to scroll by specified few lines */ | 1680 | /* Try to scroll by specified few lines */ |
| 1681 | 1681 | ||
| 1682 | if (scroll_step && !current_buffer->clip_changed) | 1682 | if (scroll_step && !current_buffer->clip_changed |
| 1683 | && startp >= BEGV && startp <= ZV) | ||
| 1683 | { | 1684 | { |
| 1684 | if (PT > startp) | 1685 | if (PT > startp) |
| 1685 | { | 1686 | { |