Mercurial > emacs
diff src/xdisp.c @ 22148:7110195b0127
(redisplay_window): Don't use window->start
if it is out of range of BEGV/ZV.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 19 May 1998 22:34:36 +0000 |
parents | 484c9b2f6308 |
children | 571020b7fc5e |
line wrap: on
line diff
--- 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.