]> git.eshelyaron.com Git - emacs.git/commitdiff
(direct_output_forward_char): Check point moving into
authorKenichi Handa <handa@m17n.org>
Wed, 15 Dec 1999 00:09:32 +0000 (00:09 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 15 Dec 1999 00:09:32 +0000 (00:09 +0000)
or out of a composition.  If so, give up direct method.

src/dispnew.c

index 9cdf01e69870cbd195e56714d8b547406ab7dd59..8ce4e419565d607c530bfcfba5b3443128b20f70 100644 (file)
@@ -3266,6 +3266,11 @@ direct_output_forward_char (n)
   struct window *w = XWINDOW (selected_window);
   struct glyph_row *row;
 
+  /* Give up if point moved out of or into a composition.  */
+  if (check_point_in_composition (current_buffer, w->last_point,
+                                 current_buffer, PT))
+    return 0;
+
   /* Give up if face attributes have been changed.  */
   if (face_change_count)
     return 0;