comparison src/dispnew.c @ 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 ba0c1af167e6
children 16ab14205588
comparison
equal deleted inserted replaced
6647:e6611521fb67 6648:c7eefaee311c
1056 #ifdef HAVE_X_WINDOWS 1056 #ifdef HAVE_X_WINDOWS
1057 int dummy; 1057 int dummy;
1058 int face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point); 1058 int face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point);
1059 #endif 1059 #endif
1060 current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face); 1060 current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face);
1061 current_frame->charstarts[vpos][hpos] = point; 1061 current_frame->charstarts[vpos][hpos] = point - 1;
1062 /* Record the entry for after the newly inserted character. */
1063 current_frame->charstarts[vpos][hpos + 1] = point;
1062 adjust_window_charstarts (w, vpos, 1); 1064 adjust_window_charstarts (w, vpos, 1);
1063 } 1065 }
1064 unchanged_modified = MODIFF; 1066 unchanged_modified = MODIFF;
1065 beg_unchanged = GPT - BEG; 1067 beg_unchanged = GPT - BEG;
1066 XFASTINT (w->last_point) = point; 1068 XFASTINT (w->last_point) = point;