]> git.eshelyaron.com Git - emacs.git/commitdiff
(quail-japanese-kanji-kkc): Fix order of
authorKenichi Handa <handa@m17n.org>
Fri, 8 Jul 2005 00:52:05 +0000 (00:52 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 8 Jul 2005 00:52:05 +0000 (00:52 +0000)
insertion and deletion.

leim/quail/japanese.el

index fa87a9935b98bc9a4607047f6f7b968adbbafbb9..09b005a7bb2ac38b863a356a64b3713983e2382d 100644 (file)
@@ -79,9 +79,9 @@
   (when (= (char-before (overlay-end quail-conv-overlay)) ?n)
     ;; The last char is `n'.  We had better convert it to `\e$B$s\e(B'
     ;; before kana-kanji conversion.
-    (goto-char (overlay-end quail-conv-overlay))
-    (delete-char -1)
-    (insert ?\e$B$s\e(B))
+    (goto-char (1- (overlay-end quail-conv-overlay)))
+    (insert ?\e$B$s\e(B)
+    (delete-char 1))
   (let* ((from (copy-marker (overlay-start quail-conv-overlay)))
         (len (- (overlay-end quail-conv-overlay) from)))
     (quail-delete-overlays)