# HG changeset patch # User Jim Blandy # Date 737838811 0 # Node ID d9f7768b0d892be595dbcacb6591a9f31facd240 # Parent fa41174db2fa0d759b9f0e5f2e1c6361c2919fe9 * xdisp.c (redisplay_window): Compute the scrollbar start and end properly. diff -r fa41174db2fa -r d9f7768b0d89 src/xdisp.c --- a/src/xdisp.c Wed May 19 19:08:12 1993 +0000 +++ b/src/xdisp.c Wed May 19 19:13:31 1993 +0000 @@ -1069,10 +1069,10 @@ if (! MINI_WINDOW_P (w) || (w == XWINDOW (minibuf_window) && ! echo_area_glyphs)) { - start = startp; + 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; whole = ZV - BEGV; if (end < start) end = start;