summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lookup/pinyin_lookup2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lookup/pinyin_lookup2.cpp b/src/lookup/pinyin_lookup2.cpp
index 46ec141..cfd40f9 100644
--- a/src/lookup/pinyin_lookup2.cpp
+++ b/src/lookup/pinyin_lookup2.cpp
@@ -265,6 +265,8 @@ bool PinyinLookup2::get_best_match(TokenVector prefixes,
search_unigram2(topresults, i, ranges);
}
+ /* poke the next constraint. */
+ ++ next_constraint;
if (CONSTRAINT_ONESTEP == next_constraint->m_type)
break;