summaryrefslogtreecommitdiffstats
path: root/src/PinyinEngine.cc
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-04-24 15:31:13 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-04-24 15:31:13 +0800
commitc9d7cd3ce501e7134692c51b3ba42e2eb079b312 (patch)
tree69d1262d03269153c0dfb6835a5f78ac3663ae45 /src/PinyinEngine.cc
parent0bb27ab4b07716102e7c86c103a88476e74335f1 (diff)
downloadibus-libpinyin-c9d7cd3ce501e7134692c51b3ba42e2eb079b312.tar.gz
ibus-libpinyin-c9d7cd3ce501e7134692c51b3ba42e2eb079b312.tar.xz
ibus-libpinyin-c9d7cd3ce501e7134692c51b3ba42e2eb079b312.zip
Fix half and full punch problem
Diffstat (limited to 'src/PinyinEngine.cc')
-rw-r--r--src/PinyinEngine.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PinyinEngine.cc b/src/PinyinEngine.cc
index 149d935..1d39e2c 100644
--- a/src/PinyinEngine.cc
+++ b/src/PinyinEngine.cc
@@ -198,6 +198,10 @@ PinyinEngine::slotCommitText (Text & text)
ibus_engine_commit_text (m_engine, text);
if (m_input_mode != MODE_INIT)
m_input_mode = MODE_INIT;
+ if (text.text ())
+ static_cast<FallbackEditor*> (m_fallback_editor.get ())->setPrevCommittedChar (*text.text ());
+ else
+ static_cast<FallbackEditor*> (m_fallback_editor.get ())->setPrevCommittedChar (0);
}
void