if it is out of range of BEGV/ZV.
/* 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)
+ && startp >= BEGV && startp <= ZV)
{
w->optional_new_start = Qnil;
/* Check whether this start pos is usable given where point is. */
return col;
}
-\f\f
+\f
/* Display one line of window W, starting at char position START in W's buffer.
START_BYTE is the corresponding byte position.