From f2fa858fe4c6490379825cf1186b4a6b9585ddf1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 22 Nov 1999 17:38:21 +0000 Subject: [PATCH] (direct_output_for_insert): Increment glyph positions for glyphs from buffer text only. --- src/ChangeLog | 3 +++ src/dispnew.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index cb863bc4c66..412ab67cb44 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 1999-11-22 Gerd Moellmann + * 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. diff --git a/src/dispnew.c b/src/dispnew.c index f610238ea22..e827b520da0 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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) -- 2.39.5