Mercurial > emacs
changeset 26908:c5079639cac1
(redisplay_window) <optional new window start>: Check
that window start is in [BEGV..ZV].
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 15 Dec 1999 16:24:21 +0000 |
parents | 7498ac232d1c |
children | 5a2ef05e2490 |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Wed Dec 15 15:18:34 1999 +0000 +++ b/src/xdisp.c Wed Dec 15 16:24:21 1999 +0000 @@ -8625,7 +8625,9 @@ /* If someone specified a new starting point but did not insist, check whether it can be used. */ - if (!NILP (w->optional_new_start)) + if (!NILP (w->optional_new_start) + && CHARPOS (startp) >= BEGV + && CHARPOS (startp) <= ZV) { w->optional_new_start = Qnil; /* This takes a mini-buffer prompt into account. */