From 86bf3faa7aaeb59dc86d3a2640d7aaaa60a01246 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 16 Apr 2003 05:09:36 +0000 Subject: [PATCH] (try_window, try_window_reusing_current_matrix): When at end of window, set window_end_pos to Z-ZV. --- src/xdisp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; -- 2.39.2