diff options
| author | Karl Heuer | 1995-03-24 03:16:19 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-03-24 03:16:19 +0000 |
| commit | 632ab66500e64436f0151365ed8ab18993273e50 (patch) | |
| tree | fb51c18c014a4ca216ac189a1872a9d343fe6e6e /src | |
| parent | 02da8c820970cc43f999cb27a6d9f5c1640c4ff7 (diff) | |
| download | emacs-632ab66500e64436f0151365ed8ab18993273e50.tar.gz emacs-632ab66500e64436f0151365ed8ab18993273e50.zip | |
(try_window_id): Stop scan at bottom of window, not one line later.
Don't fail on account of continuation line below window.
(redisplay_window): Stop scan at bottom of window.
Fix reversed condition.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 7c6c2d8b54d..fd08f443c0f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1433,7 +1433,7 @@ redisplay_window (window, just_this_one) | |||
| 1433 | /* If force-mode-line-update was called, really redisplay; | 1433 | /* If force-mode-line-update was called, really redisplay; |
| 1434 | that's how redisplay is forced after e.g. changing | 1434 | that's how redisplay is forced after e.g. changing |
| 1435 | buffer-invisibility-spec. */ | 1435 | buffer-invisibility-spec. */ |
| 1436 | && ! NILP (w->update_mode_line) | 1436 | && NILP (w->update_mode_line) |
| 1437 | /* Can't use this case if highlighting a region. */ | 1437 | /* Can't use this case if highlighting a region. */ |
| 1438 | && !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) | 1438 | && !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) |
| 1439 | && NILP (w->region_showing) | 1439 | && NILP (w->region_showing) |
| @@ -1443,7 +1443,7 @@ redisplay_window (window, just_this_one) | |||
| 1443 | && !EQ (window, minibuf_window)) | 1443 | && !EQ (window, minibuf_window)) |
| 1444 | { | 1444 | { |
| 1445 | pos = *compute_motion (startp, 0, (hscroll ? 1 - hscroll : 0), | 1445 | pos = *compute_motion (startp, 0, (hscroll ? 1 - hscroll : 0), |
| 1446 | PT, height + 1, 10000, width, hscroll, | 1446 | PT, height, 0, width, hscroll, |
| 1447 | pos_tab_offset (w, startp), w); | 1447 | pos_tab_offset (w, startp), w); |
| 1448 | 1448 | ||
| 1449 | if (pos.vpos < height) | 1449 | if (pos.vpos < height) |
| @@ -1755,11 +1755,11 @@ try_window_id (window) | |||
| 1755 | 1755 | ||
| 1756 | /* Find position before which nothing is changed. */ | 1756 | /* Find position before which nothing is changed. */ |
| 1757 | bp = *compute_motion (start, 0, lmargin, | 1757 | bp = *compute_motion (start, 0, lmargin, |
| 1758 | min (ZV, beg_unchanged + BEG), height + 1, 0, | 1758 | min (ZV, beg_unchanged + BEG), height, 0, |
| 1759 | width, hscroll, pos_tab_offset (w, start), w); | 1759 | width, hscroll, pos_tab_offset (w, start), w); |
| 1760 | if (bp.vpos >= height) | 1760 | if (bp.vpos >= height) |
| 1761 | { | 1761 | { |
| 1762 | if (PT < bp.bufpos && !bp.contin) | 1762 | if (PT < bp.bufpos) |
| 1763 | { | 1763 | { |
| 1764 | /* All changes are below the frame, and point is on the frame. | 1764 | /* All changes are below the frame, and point is on the frame. |
| 1765 | We don't need to change the frame at all. | 1765 | We don't need to change the frame at all. |