# HG changeset patch # User Gerd Moellmann # Date 974351112 0 # Node ID de985bc39ea3dccdabb3770068701976c2b54163 # Parent 065659c84fef0c7e0e526c97c3dd320817b2b19e (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 -r 065659c84fef -r de985bc39ea3 src/xdisp.c --- a/src/xdisp.c Thu Nov 16 04:40:42 2000 +0000 +++ b/src/xdisp.c Thu Nov 16 05:05:12 2000 +0000 @@ -995,13 +995,15 @@ { 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;