diff options
| author | Gerd Moellmann | 2000-11-06 15:48:27 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-06 15:48:27 +0000 |
| commit | cdb1fe495d228677248cc4a9a6081458df33d518 (patch) | |
| tree | 08e52d8b8e6048c675b8769ffb5d1fcfd4dee11f /src/window.c | |
| parent | 893c512968626dbe0d25548f5beaf6833b961028 (diff) | |
| download | emacs-cdb1fe495d228677248cc4a9a6081458df33d518.tar.gz emacs-cdb1fe495d228677248cc4a9a6081458df33d518.zip | |
(displayed_window_lines): Detect partially
visible lines at the bottom correctly.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 12b15424c28..4a4fecae574 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4351,7 +4351,8 @@ displayed_window_lines (w) | |||
| 4351 | int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f); | 4351 | int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f); |
| 4352 | it.vpos += lines; | 4352 | it.vpos += lines; |
| 4353 | } | 4353 | } |
| 4354 | else if (bottom_y > height) | 4354 | else if (it.current_y < height && bottom_y > height) |
| 4355 | /* Partially visible line at the bottom. */ | ||
| 4355 | ++it.vpos; | 4356 | ++it.vpos; |
| 4356 | 4357 | ||
| 4357 | return it.vpos; | 4358 | return it.vpos; |