summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2000-12-11 07:28:51 +0000
committerMiles Bader <miles@gnu.org>2000-12-11 07:28:51 +0000
commitd80aeee83d1ea38393b94726a163c16a4f42da0e (patch)
treeb1eb1a7d8760e9cfa3731896deb7c5cd6c121ecb
parent81fe08361535eccdb6d2745082db9a85eff470c2 (diff)
downloademacs-d80aeee83d1ea38393b94726a163c16a4f42da0e.tar.gz
(displayed_window_lines): Fix off-by-one error.
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
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++;