# HG changeset patch # User Gerd Moellmann # Date 943292244 0 # Node ID 0f43cc91d6a505d51f18e02c4ef45226ac555b80 # Parent 9ea90a3ac301eb2d119510ef113de90b38d1a0a7 (direct_output_for_insert): Increment glyph positions for glyphs from buffer text only. diff -r 9ea90a3ac301 -r 0f43cc91d6a5 src/dispnew.c --- a/src/dispnew.c Mon Nov 22 16:14:41 1999 +0000 +++ b/src/dispnew.c Mon Nov 22 17:37:24 1999 +0000 @@ -3163,7 +3163,7 @@ /* 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)