visible lines at the bottom correctly.
+2000-11-06 Gerd Moellmann <gerd@gnu.org>
+
+ * window.c (displayed_window_lines): Detect partially
+ visible lines at the bottom correctly.
+
2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
* fileio.c (Fwrite_region): Use `visiting' rather than `visit'
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;