Mercurial > emacs
diff src/window.c @ 33255:3dbdf78ecb12
(displayed_window_lines): Detect partially
visible lines at the bottom correctly.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Mon, 06 Nov 2000 15:47:04 +0000 |
| parents | 8fab1b57781b |
| children | 8239087d52c5 |
line wrap: on
line diff
--- a/src/window.c Mon Nov 06 15:26:26 2000 +0000 +++ b/src/window.c Mon Nov 06 15:47:04 2000 +0000 @@ -4351,7 +4351,8 @@ int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f); it.vpos += lines; } - else if (bottom_y > height) + else if (it.current_y < height && bottom_y > height) + /* Partially visible line at the bottom. */ ++it.vpos; return it.vpos;
