Mercurial > emacs
diff src/window.c @ 35024:4ab60becd588
(Frecenter): When changing the window start, set the
window's window_end_valid to nil.
(Fwindow_end): Fix window-end computation when UPDATE is non-nil.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Wed, 03 Jan 2001 13:49:32 +0000 |
| parents | 1d27d92c76d2 |
| children | ac8eb6b4eee6 |
line wrap: on
line diff
--- a/src/window.c Wed Jan 03 13:49:02 2001 +0000 +++ b/src/window.c Wed Jan 03 13:49:32 2001 +0000 @@ -908,6 +908,7 @@ cope with variable-height lines. */ start_display (&it, w, startp); move_it_vertically (&it, window_box_height (w)); + move_it_past_eol (&it); value = make_number (IT_CHARPOS (it)); } else @@ -4555,6 +4556,7 @@ /* Set the new window start. */ set_marker_both (w->start, w->buffer, charpos, bytepos); + w->window_end_valid = Qnil; w->force_start = Qt; if (bytepos == BEGV_BYTE || FETCH_BYTE (bytepos - 1) == '\n') w->start_at_line_beg = Qt;
