# HG changeset patch # User Jim Blandy # Date 737939717 0 # Node ID f3c44426bed26eb3d66a452011883124396c9fb7 # Parent a9e4ef13ce85c9c554cf7f65e29605bd1e991e9d Fix the fix to scrollbar computaaFix the fix to the fix for scrollbar computation. diff -r a9e4ef13ce85 -r f3c44426bed2 src/xdisp.c --- a/src/xdisp.c Thu May 20 20:22:34 1993 +0000 +++ b/src/xdisp.c Thu May 20 23:15:17 1993 +0000 @@ -1069,14 +1069,14 @@ if (! MINI_WINDOW_P (w) || (w == XWINDOW (minibuf_window) && ! echo_area_glyphs)) { + whole = ZV - BEGV; 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) - BEGV; - whole = ZV - BEGV; + end = (Z - XINT (w->window_end_pos)) - BEGV; if (end < start) end = start; - if (whole > (end - start)) whole = end - start; + if (whole < (end - start)) whole = end - start; } else start = end = whole = 0;