From f6b0dc8ef534ce7c514c99ba1706e91b1ce0b2fb Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 16 Jan 2012 13:31:27 +0800 Subject: [PATCH] fixes +.+ --- src/PYPBopomofoEngine.cc | 3 ++- src/PYPPinyinEngine.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PYPBopomofoEngine.cc b/src/PYPBopomofoEngine.cc index 96b218d..6e5df67 100644 --- a/src/PYPBopomofoEngine.cc +++ b/src/PYPBopomofoEngine.cc @@ -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 "+.+" here */ if (text.text ()) static_cast (m_fallback_editor.get ())->setPrevCommittedChar (*text.text ()); else diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc index 2526d30..30131c2 100644 --- a/src/PYPPinyinEngine.cc +++ b/src/PYPPinyinEngine.cc @@ -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 "+.+" here */ if (text.text ()) static_cast (m_fallback_editor.get ())->setPrevCommittedChar (*text.text ()); else -- 2.7.4