# HG changeset patch # User Miles Bader # Date 976519731 0 # Node ID fef41c786c7ab881cf206b4d58149214ba5e14c1 # Parent 0d16962724cb769599bee06a62be75788e886879 (displayed_window_lines): Fix off-by-one error. diff -r 0d16962724cb -r fef41c786c7a src/window.c --- a/src/window.c Mon Dec 11 07:22:38 2000 +0000 +++ b/src/window.c Mon Dec 11 07:28:51 2000 +0000 @@ -4475,7 +4475,7 @@ bottom_y = it.current_y + it.max_ascent + it.max_descent; - if (bottom_y > it.current_y && bottom_y < it.last_visible_y) + if (bottom_y > it.current_y && bottom_y <= it.last_visible_y) /* Hit a line without a terminating newline. */ it.vpos++;