From d80aeee83d1ea38393b94726a163c16a4f42da0e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 11 Dec 2000 07:28:51 +0000 Subject: [PATCH] (displayed_window_lines): Fix off-by-one error. --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index 677dc9aedcd..23dbcbdfa99 100644 --- a/src/window.c +++ b/src/window.c @@ -4475,7 +4475,7 @@ displayed_window_lines (w) 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++; -- 2.39.5