mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-14 23:40:39 -08:00
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.
This commit is contained in:
parent
33073d5629
commit
67c8a219e6
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue