comparison src/xdisp.c @ 26908:c5079639cac1

(redisplay_window) <optional new window start>: Check that window start is in [BEGV..ZV].
author Gerd Moellmann <gerd@gnu.org>
date Wed, 15 Dec 1999 16:24:21 +0000
parents e45f9a84fca0
children d7f15cd9c4ad
comparison
equal deleted inserted replaced
26907:7498ac232d1c 26908:c5079639cac1
8623 8623
8624 SET_TEXT_POS_FROM_MARKER (startp, w->start); 8624 SET_TEXT_POS_FROM_MARKER (startp, w->start);
8625 8625
8626 /* If someone specified a new starting point but did not insist, 8626 /* If someone specified a new starting point but did not insist,
8627 check whether it can be used. */ 8627 check whether it can be used. */
8628 if (!NILP (w->optional_new_start)) 8628 if (!NILP (w->optional_new_start)
8629 && CHARPOS (startp) >= BEGV
8630 && CHARPOS (startp) <= ZV)
8629 { 8631 {
8630 w->optional_new_start = Qnil; 8632 w->optional_new_start = Qnil;
8631 /* This takes a mini-buffer prompt into account. */ 8633 /* This takes a mini-buffer prompt into account. */
8632 start_display (&it, w, startp); 8634 start_display (&it, w, startp);
8633 move_it_to (&it, PT, 0, it.last_visible_y, -1, 8635 move_it_to (&it, PT, 0, it.last_visible_y, -1,