comparison src/xdisp.c @ 2904:d9f7768b0d89

* xdisp.c (redisplay_window): Compute the scrollbar start and end properly.
author Jim Blandy <jimb@redhat.com>
date Wed, 19 May 1993 19:13:31 +0000
parents e52ea063421a
children f3c44426bed2
comparison
equal deleted inserted replaced
2903:fa41174db2fa 2904:d9f7768b0d89
1067 1067
1068 Note that minibuffers sometimes aren't displaying any text. */ 1068 Note that minibuffers sometimes aren't displaying any text. */
1069 if (! MINI_WINDOW_P (w) 1069 if (! MINI_WINDOW_P (w)
1070 || (w == XWINDOW (minibuf_window) && ! echo_area_glyphs)) 1070 || (w == XWINDOW (minibuf_window) && ! echo_area_glyphs))
1071 { 1071 {
1072 start = startp; 1072 start = startp - BEGV;
1073 /* I don't think this is guaranteed to be right. For the 1073 /* I don't think this is guaranteed to be right. For the
1074 moment, we'll pretend it is. */ 1074 moment, we'll pretend it is. */
1075 end = Z - XINT (w->window_end_pos); 1075 end = Z - XINT (w->window_end_pos) - BEGV;
1076 whole = ZV - BEGV; 1076 whole = ZV - BEGV;
1077 1077
1078 if (end < start) end = start; 1078 if (end < start) end = start;
1079 if (whole > (end - start)) whole = end - start; 1079 if (whole > (end - start)) whole = end - start;
1080 } 1080 }