summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
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++;