aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-06-22 06:59:07 +0000
committerJim Blandy1993-06-22 06:59:07 +0000
commit85f26be98d75498956b04a4b03e1f6c918c840ba (patch)
tree074e5f5f7b7fa9e745caf36477863a5b5db146d5 /src
parente45fce035979831b31bdadbff232e5039d16f816 (diff)
downloademacs-85f26be98d75498956b04a4b03e1f6c918c840ba.tar.gz
emacs-85f26be98d75498956b04a4b03e1f6c918c840ba.zip
* 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 368fe75b004..33e58eb95f4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1079,7 +1079,7 @@ done:
1079 start = startp - BEGV; 1079 start = startp - BEGV;
1080 /* I don't think this is guaranteed to be right. For the 1080 /* I don't think this is guaranteed to be right. For the
1081 moment, we'll pretend it is. */ 1081 moment, we'll pretend it is. */
1082 end = (Z - XINT (w->window_end_pos)); 1082 end = (Z - XINT (w->window_end_pos)) - BEGV;
1083 1083
1084 if (end < start) end = start; 1084 if (end < start) end = start;
1085 if (whole < (end - start)) whole = end - start; 1085 if (whole < (end - start)) whole = end - start;