aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2003-04-16 05:09:36 +0000
committerRichard M. Stallman <[email protected]>2003-04-16 05:09:36 +0000
commit86bf3faa7aaeb59dc86d3a2640d7aaaa60a01246 (patch)
tree442d308a3a2763f6e1036f8a533bc4f1bed89183 /src
parentc87426c59712ce4ea5a16ccf7fba96f65b3e7cc4 (diff)
(try_window, try_window_reusing_current_matrix):
When at end of window, set window_end_pos to Z-ZV.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index fa9854da76..940db9ced3 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;