]> git.eshelyaron.com Git - emacs.git/commitdiff
(command_loop_1): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Fri, 25 Dec 2009 05:27:03 +0000 (05:27 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 25 Dec 2009 05:27:03 +0000 (05:27 +0000)
src/keyboard.c

index 37f0ca8c83abe5c05a240d38eb3415c472007a41..7a137ea0dca97951c8684fc58c39300af05583fd 100644 (file)
@@ -1978,9 +1978,11 @@ command_loop_1 ()
          && NILP (Vdisable_point_adjustment)
          && NILP (Vglobal_disable_point_adjustment))
        {
-         if (composition_adjust_point (last_point_position,
-                                       last_point_position)
-             != last_point_position)
+         if (last_point_position > BEGV
+             && last_point_position < ZV
+             && (composition_adjust_point (last_point_position,
+                                           last_point_position)
+                 != last_point_position))
            /* The last point was temporarily set within a grapheme
               cluster to prevent automatic composition.  To recover
               the automatic composition, we must update the