aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-05-19 19:13:31 +0000
committerJim Blandy <[email protected]>1993-05-19 19:13:31 +0000
commit6887f62301ff2f76dfb86423ecfc43cbb05b381f (patch)
tree32c2a56f921e2346c3f059af94b83e01bbc88534 /src/xdisp.c
parent28d3ed91adb431470f8ee9b84941779709df9b8b (diff)
* xdisp.c (redisplay_window): Compute the scrollbar start and end
properly.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index f37f1d4e97..f034bb203e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1069,10 +1069,10 @@ done:
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;