(direct_output_for_insert): Increment glyph positions
for glyphs from buffer text only.
This commit is contained in:
parent
855b9e3374
commit
f2fa858fe4
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue