aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c11
2 files changed, 14 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6096177d1f0..236433bba20 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12000-11-17 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (pos_visible_p): Compute the default character height
4 differently.
5
12000-11-16 Gerd Moellmann <gerd@gnu.org> 62000-11-16 Gerd Moellmann <gerd@gnu.org>
2 7
3 * xdisp.c (pos_visible_p): Handle case that we reach ZV without 8 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
diff --git a/src/xdisp.c b/src/xdisp.c
index e75ae762687..9b4df8444d4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1002,8 +1002,15 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p)
1002 ? it.max_ascent + it.max_descent 1002 ? it.max_ascent + it.max_descent
1003 : last_height); 1003 : last_height);
1004 } 1004 }
1005 else 1005 else
1006 line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame))); 1006 {
1007 /* Use the default character height. */
1008 it.what = IT_CHARACTER;
1009 it.c = ' ';
1010 it.len = 1;
1011 PRODUCE_GLYPHS (&it);
1012 line_height = it.ascent + it.descent;
1013 }
1007 } 1014 }
1008 line_bottom_y = line_top_y + line_height; 1015 line_bottom_y = line_top_y + line_height;
1009 1016