(direct_output_for_insert): Increment glyph positions
authorGerd Moellmann <gerd@gnu.org>
Mon, 22 Nov 1999 17:38:21 +0000 (17:38 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 22 Nov 1999 17:38:21 +0000 (17:38 +0000)
for glyphs from buffer text only.

src/ChangeLog
src/dispnew.c

index cb863bc..412ab67 100644 (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.
        
index f610238..e827b52 100644 (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)