From d5789b65af2b248c62a703aa9af87aa4f7350823 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 25 Oct 2000 13:14:16 +0000 Subject: [PATCH] (pos_visible_p): Don't add `it.current_y' twice. --- src/ChangeLog | 4 ++++ src/xdisp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index a2865c12b47..e0446868e68 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2000-10-25 Miles Bader + + * xdisp.c (pos_visible_p): Don't add `it.current_y' twice. + 2000-10-25 Gerd Moellmann * window.c (pos_fully_visible_p): Removed. diff --git a/src/xdisp.c b/src/xdisp.c index 9bf8aa9ef6d..bcb285ae134 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -954,9 +954,9 @@ pos_visible_p (w, charpos, fully) int line_height; if (it.max_ascent == 0 && it.max_descent == 0) - line_height = it.current_y + last_height; + line_height = last_height; else - line_height = it.current_y + it.max_ascent + it.max_descent; + line_height = it.max_ascent + it.max_descent; *fully = it.current_y + line_height <= it.last_visible_y; visible_p = 1; -- 2.39.2