diff options
| author | Eli Zaretskii | 2017-06-26 19:38:17 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-06-26 19:38:17 +0300 |
| commit | 67c8a219e670eed317acdffc68a2888e2c557e79 (patch) | |
| tree | 4d3edc457145eb63834112877b4ebccd3d455665 | |
| parent | 33073d5629ca44f0d5db6fb29d1229da74e0e3c1 (diff) | |
| download | emacs-67c8a219e670eed317acdffc68a2888e2c557e79.tar.gz emacs-67c8a219e670eed317acdffc68a2888e2c557e79.zip | |
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.
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) | |||
| 20925 | it->max_phys_descent = max (row->phys_height - row->phys_ascent, | 20925 | it->max_phys_descent = max (row->phys_height - row->phys_ascent, |
| 20926 | tem_it.max_phys_descent); | 20926 | tem_it.max_phys_descent); |
| 20927 | } | 20927 | } |
| 20928 | else | ||
| 20929 | { | ||
| 20930 | it->max_ascent = max (it->max_ascent, tem_it.max_ascent); | ||
| 20931 | it->max_descent = max (it->max_descent, tem_it.max_descent); | ||
| 20932 | it->max_phys_ascent = max (it->max_phys_ascent, tem_it.max_phys_ascent); | ||
| 20933 | it->max_phys_descent = max (it->max_phys_descent, tem_it.max_phys_descent); | ||
| 20934 | } | ||
| 20928 | 20935 | ||
| 20929 | bidi_unshelve_cache (itdata, false); | 20936 | bidi_unshelve_cache (itdata, false); |
| 20930 | } | 20937 | } |