# HG changeset patch # User Gerd Moellmann # Date 973525624 0 # Node ID 3dbdf78ecb12f5b048bf4683eeb6e9b35a68e742 # Parent 5adb6d0b1cee0115062150a953235099b098d072 (displayed_window_lines): Detect partially visible lines at the bottom correctly. diff -r 5adb6d0b1cee -r 3dbdf78ecb12 src/window.c --- 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;