From: Miles Bader Date: Mon, 11 Dec 2000 07:28:51 +0000 (+0000) Subject: (displayed_window_lines): Fix off-by-one error. X-Git-Tag: emacs-pretest-21.0.93~46 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d80aeee83d1ea38393b94726a163c16a4f42da0e;p=emacs.git (displayed_window_lines): Fix off-by-one error. --- 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++;