]> git.eshelyaron.com Git - emacs.git/commitdiff
(direct_output_for_insert): Add charstarts entry after the new char.
authorRichard M. Stallman <rms@gnu.org>
Sun, 3 Apr 1994 08:09:11 +0000 (08:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 3 Apr 1994 08:09:11 +0000 (08:09 +0000)
Use the right point value for the inserted character.

src/dispnew.c

index 856659483a405c33a2a5fe94928c989839d1dcd2..7f795a4dc409a3811d7a5041735c251eeb74c490 100644 (file)
@@ -1058,7 +1058,9 @@ direct_output_for_insert (g)
     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;