changeset 34417:fef41c786c7a

(displayed_window_lines): Fix off-by-one error.
author Miles Bader <miles@gnu.org>
date Mon, 11 Dec 2000 07:28:51 +0000
parents 0d16962724cb
children 6a8eb5041120
files src/window.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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++;