changeset 6648:c7eefaee311c

(direct_output_for_insert): Add charstarts entry after the new char. Use the right point value for the inserted character.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Apr 1994 08:09:11 +0000
parents e6611521fb67
children 1305248ee38a
files src/dispnew.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Sun Apr 03 08:08:33 1994 +0000
+++ b/src/dispnew.c	Sun Apr 03 08:09:11 1994 +0000
@@ -1058,7 +1058,9 @@
     int face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point);
 #endif
     current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face);
-    current_frame->charstarts[vpos][hpos] = point;
+    current_frame->charstarts[vpos][hpos] = point - 1;
+    /* Record the entry for after the newly inserted character.  */
+    current_frame->charstarts[vpos][hpos + 1] = point;
     adjust_window_charstarts (w, vpos, 1);
   }
   unchanged_modified = MODIFF;