1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00

(pos_visible_p): Compute the default character height

differently.
This commit is contained in:
Gerd Moellmann 2000-11-17 15:39:14 +00:00
parent 96403ac139
commit 100b593bc4
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2000-11-17 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (pos_visible_p): Compute the default character height
differently.
2000-11-16 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (pos_visible_p): Handle case that we reach ZV without

View file

@ -1002,8 +1002,15 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p)
? it.max_ascent + it.max_descent
: last_height);
}
else
line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame)));
else
{
/* Use the default character height. */
it.what = IT_CHARACTER;
it.c = ' ';
it.len = 1;
PRODUCE_GLYPHS (&it);
line_height = it.ascent + it.descent;
}
}
line_bottom_y = line_top_y + line_height;