projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3139f
)
fixes poke the next constraint
author
Peng Wu
<alexepico@gmail.com>
Wed, 14 Nov 2012 08:10:32 +0000
(16:10 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Wed, 14 Nov 2012 08:11:00 +0000
(16:11 +0800)
src/lookup/pinyin_lookup2.cpp
patch
|
blob
|
history
diff --git
a/src/lookup/pinyin_lookup2.cpp
b/src/lookup/pinyin_lookup2.cpp
index
46ec141
..
cfd40f9
100644
(file)
--- 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;