aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-06-22 06:59:07 +0000
committerJim Blandy <[email protected]>1993-06-22 06:59:07 +0000
commit85f26be98d75498956b04a4b03e1f6c918c840ba (patch)
tree074e5f5f7b7fa9e745caf36477863a5b5db146d5 /src
parente45fce035979831b31bdadbff232e5039d16f816 (diff)
* xdisp.c (redisplay_window): Remember to compute end relative to
the start of the visible region, too.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 368fe75b00..33e58eb95f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1079,7 +1079,7 @@ done:
start = startp - BEGV;
/* I don't think this is guaranteed to be right. For the
moment, we'll pretend it is. */
- end = (Z - XINT (w->window_end_pos));
+ end = (Z - XINT (w->window_end_pos)) - BEGV;
if (end < start) end = start;
if (whole < (end - start)) whole = end - start;