From c02e3004672b0a09de44e55b083afc93b137a7a4 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 18 Jul 1993 06:23:32 +0000 Subject: [PATCH] * dispnew.c (direct_output_for_insert): By the time this function is called, we have already inserted the character into the buffer; the proper buffer position to pass to compute_char_face is point - 1, not point. --- src/dispnew.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispnew.c b/src/dispnew.c index ed392e0eddf..32c89674b44 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -879,7 +879,7 @@ direct_output_for_insert (g) { #ifdef HAVE_X_WINDOWS int dummy; - int face = compute_char_face (frame, w, point, -1, -1, &dummy); + int face = compute_char_face (frame, w, point - 1, -1, -1, &dummy); #else int face = 0; #endif -- 2.39.5