Mercurial > emacs
changeset 2929:f3c44426bed2
Fix the fix to scrollbar computaaFix the fix to the fix for scrollbar computation.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 20 May 1993 23:15:17 +0000 |
parents | a9e4ef13ce85 |
children | 839f3d132ee0 |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;