(displayed_window_lines): Fix off-by-one error.
authorMiles Bader <miles@gnu.org>
Mon, 11 Dec 2000 07:28:51 +0000 (07:28 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 11 Dec 2000 07:28:51 +0000 (07:28 +0000)
src/window.c

index 677dc9a..23dbcbd 100644 (file)
@@ -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++;