Commit cfad01b4 authored by Gerd Moellmann's avatar Gerd Moellmann

(redisplay_window) <optional new window start>: Check

that window start is in [BEGV..ZV].
parent 362ba9c6
No preview for this file type
......@@ -8625,7 +8625,9 @@ redisplay_window (window, just_this_one_p)
/* 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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment