# HG changeset patch # User Richard M. Stallman # Date 895617276 0 # Node ID 7110195b0127a83ac6c1e3598c2e76f8616009b0 # Parent 803bcc3c1a49b99fb759786c4bcae26d7444c510 (redisplay_window): Don't use window->start if it is out of range of BEGV/ZV. diff -r 803bcc3c1a49 -r 7110195b0127 src/xdisp.c --- a/src/xdisp.c Tue May 19 22:24:01 1998 +0000 +++ b/src/xdisp.c Tue May 19 22:34:36 1998 +0000 @@ -1897,7 +1897,8 @@ /* 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. */ @@ -3135,7 +3136,7 @@ return col; } - + /* Display one line of window W, starting at char position START in W's buffer. START_BYTE is the corresponding byte position.