fixes <num>+.<num>+
authorPeng Wu <alexepico@gmail.com>
Mon, 16 Jan 2012 05:31:27 +0000 (13:31 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 16 Jan 2012 05:31:27 +0000 (13:31 +0800)
src/PYPBopomofoEngine.cc
src/PYPPinyinEngine.cc

index 96b218d..6e5df67 100644 (file)
@@ -215,7 +215,8 @@ LibPinyinBopomofoEngine::commitText (Text & text)
     Engine::commitText (text);
     if (m_input_mode != MODE_INIT)
         m_input_mode = MODE_INIT;
-#if 0
+#if 1
+    /* handle "<num>+.<num>+" here */
     if (text.text ())
         static_cast<FallbackEditor*> (m_fallback_editor.get ())->setPrevCommittedChar (*text.text ());
     else
index 2526d30..30131c2 100644 (file)
@@ -278,7 +278,8 @@ LibPinyinPinyinEngine::commitText (Text & text)
     Engine::commitText (text);
     if (m_input_mode != MODE_INIT)
         m_input_mode = MODE_INIT;
-#if 0
+#if 1
+    /* handle "<num>+.<num>+" here */
     if (text.text ())
         static_cast<FallbackEditor*> (m_fallback_editor.get ())->setPrevCommittedChar (*text.text ());
     else