diff options
| author | Jim Blandy | 1993-05-14 14:39:15 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-14 14:39:15 +0000 |
| commit | 517b2e01b32e18c6a2b842686197752e64d430d7 (patch) | |
| tree | 1fab75044e1fefe7d7c739a5b737a63145b0f585 /src | |
| parent | 7b502dc3262f5d1a710048f50e30a0d822421864 (diff) | |
| download | emacs-517b2e01b32e18c6a2b842686197752e64d430d7.tar.gz emacs-517b2e01b32e18c6a2b842686197752e64d430d7.zip | |
* dispnew.c (direct_output_for_insert): Compute the face of the
character we're inserting properly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 4e17a870942..963cc22cf44 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -875,7 +875,16 @@ direct_output_for_insert (g) | |||
| 875 | || (MINI_WINDOW_P (w) && echo_area_glyphs)) | 875 | || (MINI_WINDOW_P (w) && echo_area_glyphs)) |
| 876 | return 0; | 876 | return 0; |
| 877 | 877 | ||
| 878 | current_frame->glyphs[vpos][hpos] = g; | 878 | { |
| 879 | #ifdef HAVE_X_WINDOWS | ||
| 880 | int dummy; | ||
| 881 | int face = compute_char_face (frame, w, point, &dummy); | ||
| 882 | #else | ||
| 883 | int face = 0; | ||
| 884 | #endif | ||
| 885 | |||
| 886 | current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (g, face); | ||
| 887 | } | ||
| 879 | unchanged_modified = MODIFF; | 888 | unchanged_modified = MODIFF; |
| 880 | beg_unchanged = GPT - BEG; | 889 | beg_unchanged = GPT - BEG; |
| 881 | XFASTINT (w->last_point) = point; | 890 | XFASTINT (w->last_point) = point; |