24 lines
815 B
Diff
24 lines
815 B
Diff
|
commit 3717bfcf2b5334c4d5800cb2239ab33410e7c26a
|
||
|
Author: Peng Wu <alexepico@gmail.com>
|
||
|
Date: Tue Apr 17 12:45:47 2012 +0800
|
||
|
|
||
|
update pinyin_choose_candidate
|
||
|
|
||
|
diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc
|
||
|
index 4bd68fc..fe047fa 100644
|
||
|
--- a/src/PYPPhoneticEditor.cc
|
||
|
+++ b/src/PYPPhoneticEditor.cc
|
||
|
@@ -379,11 +379,10 @@ LibPinyinPhoneticEditor::selectCandidate (guint i)
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
- guint8 len = pinyin_choose_candidate (m_instance, lookup_cursor, *token);
|
||
|
+ lookup_cursor = pinyin_choose_candidate (m_instance, lookup_cursor, *token);
|
||
|
pinyin_guess_sentence (m_instance);
|
||
|
|
||
|
PinyinKeyPosVector & pinyin_poses = m_instance->m_pinyin_key_rests;
|
||
|
- lookup_cursor += len;
|
||
|
if (lookup_cursor == pinyin_poses->len) {
|
||
|
commit();
|
||
|
return TRUE;
|