From: Eli Zaretskii Date: Mon, 26 Jun 2017 16:38:17 +0000 (+0300) Subject: Update IT's metrics while simulating display X-Git-Tag: emacs-26.0.90~518^2~156^2~18 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=67c8a219e670eed317acdffc68a2888e2c557e79;p=emacs.git Update IT's metrics while simulating display * src/xdisp.c (maybe_produce_line_number): Update IT's metrics also when glyph_row is NULL. This is important for move_it_* functions. --- diff --git a/src/xdisp.c b/src/xdisp.c index aa75fcaf77c..3283f9ee971 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -20925,6 +20925,13 @@ maybe_produce_line_number (struct it *it) it->max_phys_descent = max (row->phys_height - row->phys_ascent, tem_it.max_phys_descent); } + else + { + it->max_ascent = max (it->max_ascent, tem_it.max_ascent); + it->max_descent = max (it->max_descent, tem_it.max_descent); + it->max_phys_ascent = max (it->max_phys_ascent, tem_it.max_phys_ascent); + it->max_phys_descent = max (it->max_phys_descent, tem_it.max_phys_descent); + } bidi_unshelve_cache (itdata, false); }