* xdisp.c (redisplay_window): Remember to compute end relative to
authorJim Blandy <jimb@redhat.com>
Tue, 22 Jun 1993 06:59:07 +0000 (06:59 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 22 Jun 1993 06:59:07 +0000 (06:59 +0000)
the start of the visible region, too.

src/xdisp.c

index 368fe75..33e58eb 100644 (file)
@@ -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;