From: Gerd Moellmann Date: Thu, 16 Nov 2000 05:05:34 +0000 (+0000) Subject: (pos_visible_p): Handle case that we reach ZV without X-Git-Tag: emacs-pretest-21.0.90~34 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cac94de6556616a52265d2d41905df45822a7515;p=emacs.git (pos_visible_p): Handle case that we reach ZV without knowing the line's height; use the default font's height in that case. --- diff --git a/src/ChangeLog b/src/ChangeLog index d6fd3dfc20d..6096177d1f0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2000-11-16 Gerd Moellmann + * 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'. diff --git a/src/xdisp.c b/src/xdisp.c index c2ed64b1477..e75ae762687 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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;