Commit 037d8bdf authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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)
parent 6fa3176c
......@@ -21009,6 +21009,8 @@ maybe_produce_line_number (struct it *it)
struct glyph *p = it->glyph_row ? it->glyph_row->glyphs[TEXT_AREA] : NULL;
short *u = it->glyph_row ? &it->glyph_row->used[TEXT_AREA] : NULL;
 
eassert (it->glyph_row == NULL || it->glyph_row->used[TEXT_AREA] == 0);
for ( ; g < e; g++)
{
it->current_x += g->pixel_width;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment