From: Eli Zaretskii Date: Fri, 14 Jul 2017 08:00:25 +0000 (+0300) Subject: Add assertion related to display-line-numbers X-Git-Tag: emacs-26.0.90~518^2~118 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=037d8bdfeb905f0f1f49c5c7ab2deba13c9c6617;p=emacs.git 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) --- 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) 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;