# HG changeset patch # User Miles Bader # Date 972479593 0 # Node ID dd3d90d6521442c15212d58e583551fe3f6b36ec # Parent d37727fd841b8c74493614aff53e9b5608f36c3a (pos_visible_p): Don't add `it.current_y' twice. diff -r d37727fd841b -r dd3d90d65214 src/xdisp.c --- a/src/xdisp.c Wed Oct 25 12:14:15 2000 +0000 +++ b/src/xdisp.c Wed Oct 25 13:13:13 2000 +0000 @@ -954,9 +954,9 @@ 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;