summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2022-10-12 15:15:13 +0800
committerPeng Wu <alexepico@gmail.com>2022-10-12 15:15:13 +0800
commit6f90b44df7126506c2162bce3b58b1c8ff9851c7 (patch)
tree7ebd392842389745cd89ca12f6b282c4e541c87f
parent0fe1edb310b9aaffbd7e02b3a57ecec89c955891 (diff)
downloadibus-libpinyin-6f90b44df7126506c2162bce3b58b1c8ff9851c7.tar.gz
Update updatePreeditText method for Legacy mode1.14.91
-rw-r--r--src/PYPPinyinEditor.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PYPPinyinEditor.cc b/src/PYPPinyinEditor.cc
index 275c02a..0a116ea 100644
--- a/src/PYPPinyinEditor.cc
+++ b/src/PYPPinyinEditor.cc
@@ -242,6 +242,12 @@ PinyinEditor::updatePreeditText ()
m_buffer.clear ();
+ /* for Legacy mode */
+ if (m_config.sortOption () & SORT_WITHOUT_SENTENCE_CANDIDATE) {
+ hidePreeditText ();
+ return;
+ }
+
/* probe nbest match candidate */
lookup_candidate_type_t type;
lookup_candidate_t * candidate = NULL;