Mercurial > emacs
diff src/dispnew.c @ 26546:0f43cc91d6a5
(direct_output_for_insert): Increment glyph positions
for glyphs from buffer text only.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 22 Nov 1999 17:37:24 +0000 |
parents | 10af169a628b |
children | f7c7ef351f04 |
line wrap: on
line diff
--- 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)