diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-04-03 08:09:11 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-04-03 08:09:11 +0000 |
commit | 5f6cdbe97bff0ae5b185fb0e39066ac9a4ce70f3 (patch) | |
tree | 3c7e634d8de8322f41b819a907c6973b4fa1c2a7 /src/dispnew.c | |
parent | 2da7ca6671eb85d735d6bd039de14246a027e0fd (diff) | |
download | emacs-5f6cdbe97bff0ae5b185fb0e39066ac9a4ce70f3.tar.gz |
(direct_output_for_insert): Add charstarts entry after the new char.
Use the right point value for the inserted character.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |