]> git.eshelyaron.com Git - emacs.git/commitdiff
(pos_visible_p): Don't add `it.current_y' twice.
authorMiles Bader <miles@gnu.org>
Wed, 25 Oct 2000 13:14:16 +0000 (13:14 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 25 Oct 2000 13:14:16 +0000 (13:14 +0000)
src/ChangeLog
src/xdisp.c

index a2865c12b4782213cbdfa35dc6daa3ecd8400b45..e0446868e68bd9e1454307e7fffcd813b7af468b 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-25  Miles Bader  <miles@gnu.org>
+
+       * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
+
 2000-10-25  Gerd Moellmann  <gerd@gnu.org>
 
        * window.c (pos_fully_visible_p): Removed.
index 9bf8aa9ef6d20c2aac5b061ab333d0dc67c7cf77..bcb285ae1346d0d8ba92d5ad764864fbe9d4a1dc 100644 (file)
@@ -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;