changeset 33255:3dbdf78ecb12

(displayed_window_lines): Detect partially visible lines at the bottom correctly.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 06 Nov 2000 15:47:04 +0000
parents 5adb6d0b1cee
children cc66e1e4c5d3
files src/window.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Mon Nov 06 15:26:26 2000 +0000
+++ b/src/window.c	Mon Nov 06 15:47:04 2000 +0000
@@ -4351,7 +4351,8 @@
       int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f);
       it.vpos += lines;
     }
-  else if (bottom_y > height)
+  else if (it.current_y < height && bottom_y > height)
+    /* Partially visible line at the bottom.  */
     ++it.vpos;
   
   return it.vpos;