]> git.eshelyaron.com Git - emacs.git/commitdiff
* dispnew.c (direct_output_for_insert): By the time this function
authorJim Blandy <jimb@redhat.com>
Sun, 18 Jul 1993 06:23:32 +0000 (06:23 +0000)
committerJim Blandy <jimb@redhat.com>
Sun, 18 Jul 1993 06:23:32 +0000 (06:23 +0000)
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

index ed392e0eddf7693eca106e640c4df597045633cd..32c89674b44c1e9a70d65ff4b0bbb342e2f8295d 100644 (file)
@@ -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