aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2017-07-14 11:00:25 +0300
committerEli Zaretskii2017-07-14 11:00:25 +0300
commit037d8bdfeb905f0f1f49c5c7ab2deba13c9c6617 (patch)
treef7e1ea44c2e5b50d4c722b28b1e23967ea4b11b2 /src
parent6fa3176ccae2bd8dcf082b80063c4e2148f5e8fd (diff)
downloademacs-037d8bdfeb905f0f1f49c5c7ab2deba13c9c6617.tar.gz
emacs-037d8bdfeb905f0f1f49c5c7ab2deba13c9c6617.zip
Add assertion related to display-line-numbers
* src/xdisp.c (maybe_produce_line_number): Add assertion for the condition regarding IT->glyph_row->used[TEXT_AREA] expected by the code. (Bug#27668)
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 85b9eae36d1..2aceb89c003 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21009,6 +21009,8 @@ maybe_produce_line_number (struct it *it)
21009 struct glyph *p = it->glyph_row ? it->glyph_row->glyphs[TEXT_AREA] : NULL; 21009 struct glyph *p = it->glyph_row ? it->glyph_row->glyphs[TEXT_AREA] : NULL;
21010 short *u = it->glyph_row ? &it->glyph_row->used[TEXT_AREA] : NULL; 21010 short *u = it->glyph_row ? &it->glyph_row->used[TEXT_AREA] : NULL;
21011 21011
21012 eassert (it->glyph_row == NULL || it->glyph_row->used[TEXT_AREA] == 0);
21013
21012 for ( ; g < e; g++) 21014 for ( ; g < e; g++)
21013 { 21015 {
21014 it->current_x += g->pixel_width; 21016 it->current_x += g->pixel_width;