fixes poke the next constraint
authorPeng Wu <alexepico@gmail.com>
Wed, 14 Nov 2012 08:10:32 +0000 (16:10 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 14 Nov 2012 08:11:00 +0000 (16:11 +0800)
src/lookup/pinyin_lookup2.cpp

index 46ec141..cfd40f9 100644 (file)
@@ -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;