Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
26545:9ea90a3ac301 | 26546:0f43cc91d6a5 |
---|---|
3161 } | 3161 } |
3162 | 3162 |
3163 /* Increment buffer positions for glyphs following the newly | 3163 /* Increment buffer positions for glyphs following the newly |
3164 inserted ones. */ | 3164 inserted ones. */ |
3165 for (glyph = glyphs + n; glyph < end; ++glyph) | 3165 for (glyph = glyphs + n; glyph < end; ++glyph) |
3166 if (glyph->charpos > 0) | 3166 if (glyph->charpos > 0 && BUFFERP (glyph->object)) |
3167 glyph->charpos += delta; | 3167 glyph->charpos += delta; |
3168 | 3168 |
3169 if (MATRIX_ROW_END_CHARPOS (glyph_row) > 0) | 3169 if (MATRIX_ROW_END_CHARPOS (glyph_row) > 0) |
3170 { | 3170 { |
3171 MATRIX_ROW_END_CHARPOS (glyph_row) += delta; | 3171 MATRIX_ROW_END_CHARPOS (glyph_row) += delta; |