Commit f2fa858f authored by Gerd Moellmann's avatar Gerd Moellmann

(direct_output_for_insert): Increment glyph positions

for glyphs from buffer text only.
parent 855b9e33
No preview for this file type
......@@ -3163,7 +3163,7 @@ direct_output_for_insert (g)
/* Increment buffer positions for glyphs following the newly
inserted ones. */
for (glyph = glyphs + n; glyph < end; ++glyph)
if (glyph->charpos > 0)
if (glyph->charpos > 0 && BUFFERP (glyph->object))
glyph->charpos += delta;
if (MATRIX_ROW_END_CHARPOS (glyph_row) > 0)
......
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