mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 14:30:43 -08:00
(pos_visible_p): Handle case that we reach ZV without
knowing the line's height; use the default font's height in that case.
This commit is contained in:
parent
a288d0d1f2
commit
cac94de655
2 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
2000-11-16 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* xdisp.c (pos_visible_p): Handle case that we reach ZV without
|
||||
knowing the line's height; use the default font's height in that
|
||||
case.
|
||||
|
||||
* xfaces.c (weight_table): Add `demi' with the same meaning as
|
||||
`demibold'.
|
||||
|
||||
|
|
|
|||
|
|
@ -995,13 +995,15 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p)
|
|||
{
|
||||
if (last_height)
|
||||
line_height = last_height;
|
||||
else
|
||||
else if (charpos < ZV)
|
||||
{
|
||||
move_it_by_lines (&it, 1, 1);
|
||||
line_height = (it.max_ascent || it.max_descent
|
||||
? it.max_ascent + it.max_descent
|
||||
: last_height);
|
||||
}
|
||||
else
|
||||
line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame)));
|
||||
}
|
||||
line_bottom_y = line_top_y + line_height;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue