diff options
| author | Jim Blandy | 1993-05-20 23:15:17 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-20 23:15:17 +0000 |
| commit | 8a9311d7078206cf179ce59503ac468bb1bd6454 (patch) | |
| tree | c5b2ef18f90d24ee95d5a212a434092e53f5073a /src | |
| parent | 1e5ba5b5f68be70e1893fa2b9f7e8b7dcdebf127 (diff) | |
| download | emacs-8a9311d7078206cf179ce59503ac468bb1bd6454.tar.gz emacs-8a9311d7078206cf179ce59503ac468bb1bd6454.zip | |
Fix the fix to scrollbar computaaFix the fix to the fix for scrollbar computation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index f034bb203e6..b991aeb5805 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1069,14 +1069,14 @@ 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 | whole = ZV - BEGV; | ||
| 1072 | start = startp - BEGV; | 1073 | start = startp - BEGV; |
| 1073 | /* I don't think this is guaranteed to be right. For the | 1074 | /* I don't think this is guaranteed to be right. For the |
| 1074 | moment, we'll pretend it is. */ | 1075 | moment, we'll pretend it is. */ |
| 1075 | end = Z - XINT (w->window_end_pos) - BEGV; | 1076 | end = (Z - XINT (w->window_end_pos)) - 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 | } |
| 1081 | else | 1081 | else |
| 1082 | start = end = whole = 0; | 1082 | start = end = whole = 0; |