# HG changeset patch # User Gerd Moellmann # Date 945275061 0 # Node ID c5079639cac1f3cf953968a81f9f8b5e8242a7d1 # Parent 7498ac232d1cc2e2b1676f228b8b01f690e72ffe (redisplay_window) : Check that window start is in [BEGV..ZV]. diff -r 7498ac232d1c -r c5079639cac1 src/xdisp.c --- 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. */