Revision: 7337
Author: deton.kih
Date: Thu Oct 27 04:11:16 2011
Log: * scm/tutcode.scm
- (tutcode-back-to-yomi-state):
Fix bug that suffix is appended to committed string when new
entry is registered to mazegaki dictionary after conversion cancel.
Steps to reproduce the bug:
type "alj" to enter yomi input mode for mazegaki conversion,
type "whwkri" then "MEMAI" in hiragana as yomi,
type " " to begin mazegaki conversion,
candidate for "ME-" ("ME" as yomi and "MAI" as suffix) is shown,
type <Control>g to cancel conversion,
type "|" to enter register mode for "MEMAI",
enter "XXX" as candidate for yomi "MEMAI",
type Return key to finish register mode,
"XXXMAI" is committed ("XXX" is expected).
http://code.google.com/p/uim/source/detail?r=7337
Modified:
/trunk/scm/tutcode.scm
=======================================
--- /trunk/scm/tutcode.scm Sat Oct 22 20:07:42 2011
+++ /trunk/scm/tutcode.scm Thu Oct 27 04:11:16 2011
@@ -3855,6 +3855,7 @@
(tutcode-reset-candidate-window pc)
(tutcode-context-set-state! pc 'tutcode-state-yomi)
(tutcode-context-set-head! pc (tutcode-context-mazegaki-yomi-all pc))
+ (tutcode-context-set-mazegaki-suffix! pc ())
(tutcode-context-set-nr-candidates! pc 0))))
;;; ¸ò¤¼½ñ¤ÊÑ´¹¤Î¼½ñÅÐÏ¿¾õÂÖ¤«¤é¡¢¸õÊäÁªÂò¾õÂÖ¤ËÌ᤹¡£