From 839c7dfb06c6f0cff3e938870527b800a771e401 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 3 Apr 1994 08:09:11 +0000 Subject: [PATCH] (direct_output_for_insert): Add charstarts entry after the new char. Use the right point value for the inserted character. --- src/dispnew.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5