Mercurial > emacs
changeset 50606:0fbbfbc3ddfe
(try_window, try_window_reusing_current_matrix):
When at end of window, set window_end_pos to Z-ZV.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 16 Apr 2003 05:09:36 +0000 |
parents | d91f2dfe45eb |
children | 6ee7467b8fd7 |
files | src/xdisp.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Wed Apr 16 05:07:38 2003 +0000 +++ b/src/xdisp.c Wed Apr 16 05:09:36 2003 +0000 @@ -12006,8 +12006,9 @@ } else { - w->window_end_bytepos = 0; - w->window_end_pos = w->window_end_vpos = make_number (0); + w->window_end_bytepos = Z_BYTE - ZV_BYTE; + w->window_end_pos = make_number (Z - ZV); + w->window_end_vpos = make_number (0); } /* But that is not valid info until redisplay finishes. */ @@ -12220,8 +12221,9 @@ else { /* This window must be completely empty. */ - w->window_end_bytepos = 0; - w->window_end_pos = w->window_end_vpos = make_number (0); + w->window_end_bytepos = Z_BYTE - ZV_BYTE; + w->window_end_pos = make_number (Z - ZV); + w->window_end_vpos = make_number (0); } w->window_end_valid = Qnil;