for glyphs from buffer text only.
1999-11-22 Gerd Moellmann <gerd@gnu.org>
+ * dispnew.c (direct_output_for_insert): Increment glyph positions
+ for glyphs from buffer text only.
+
* emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
(gdb_data_seg_bits): New variables.
/* 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)