# HG changeset patch # User Jim Blandy # Date 740732347 0 # Node ID ef6a4d39634b5d0ecbaa2a5479c93e31c1595f0d # Parent b8c99f30ca3f1daf8d078d8edd909e7ed61adadd * xdisp.c (redisplay_window): Remember to compute end relative to the start of the visible region, too. diff -r b8c99f30ca3f -r ef6a4d39634b src/xdisp.c --- a/src/xdisp.c Tue Jun 22 05:55:59 1993 +0000 +++ b/src/xdisp.c Tue Jun 22 06:59:07 1993 +0000 @@ -1079,7 +1079,7 @@ 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;