From: Richard M. Stallman Date: Wed, 16 Apr 2003 05:09:36 +0000 (+0000) Subject: (try_window, try_window_reusing_current_matrix): X-Git-Tag: ttn-vms-21-2-B4~10499 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86bf3faa7aaeb59dc86d3a2640d7aaaa60a01246;p=emacs.git (try_window, try_window_reusing_current_matrix): When at end of window, set window_end_pos to Z-ZV. --- diff --git a/src/xdisp.c b/src/xdisp.c index fa9854da763..940db9ced31 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12006,8 +12006,9 @@ try_window (window, pos) } 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 @@ try_window_reusing_current_matrix (w) 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;