(direct_output_for_insert): Increment glyph positions

for glyphs from buffer text only.
This commit is contained in:
Gerd Moellmann 1999-11-22 17:38:21 +00:00
parent 855b9e3374
commit f2fa858fe4
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
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.

View file

@ -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)