aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-05-19 19:13:31 +0000
committerJim Blandy1993-05-19 19:13:31 +0000
commit6887f62301ff2f76dfb86423ecfc43cbb05b381f (patch)
tree32c2a56f921e2346c3f059af94b83e01bbc88534 /src
parent28d3ed91adb431470f8ee9b84941779709df9b8b (diff)
downloademacs-6887f62301ff2f76dfb86423ecfc43cbb05b381f.tar.gz
emacs-6887f62301ff2f76dfb86423ecfc43cbb05b381f.zip
* xdisp.c (redisplay_window): Compute the scrollbar start and end
properly.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index f37f1d4e976..f034bb203e6 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1069,10 +1069,10 @@ done:
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;