changeset 64152:a3d3e7ed5256

(quail-japanese-kanji-kkc): Fix order of insertion and deletion.
author Kenichi Handa <handa@m17n.org>
date Fri, 08 Jul 2005 00:52:05 +0000
parents 292d83423c40
children 566b3f121f51
files leim/quail/japanese.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/leim/quail/japanese.el	Thu Jul 07 23:19:43 2005 +0000
+++ b/leim/quail/japanese.el	Fri Jul 08 00:52:05 2005 +0000
@@ -79,9 +79,9 @@
   (when (= (char-before (overlay-end quail-conv-overlay)) ?n)
     ;; The last char is `n'.  We had better convert it to `ん'
     ;; before kana-kanji conversion.
-    (goto-char (overlay-end quail-conv-overlay))
-    (delete-char -1)
-    (insert ?ん))
+    (goto-char (1- (overlay-end quail-conv-overlay)))
+    (insert ?ん)
+    (delete-char 1))
   (let* ((from (copy-marker (overlay-start quail-conv-overlay)))
 	 (len (- (overlay-end quail-conv-overlay) from)))
     (quail-delete-overlays)