From: Richard M. Stallman Date: Sun, 3 Apr 1994 08:09:11 +0000 (+0000) Subject: (direct_output_for_insert): Add charstarts entry after the new char. X-Git-Tag: emacs-19.34~9204 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=839c7dfb06c6f0cff3e938870527b800a771e401;p=emacs.git (direct_output_for_insert): Add charstarts entry after the new char. Use the right point value for the inserted character. --- diff --git a/src/dispnew.c b/src/dispnew.c index 856659483a4..7f795a4dc40 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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;