summaryrefslogtreecommitdiffstats
path: root/src/lookup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-07-07 14:18:44 +0800
committerPeng Wu <alexepico@gmail.com>2016-07-07 14:18:44 +0800
commit912add805b79fd9fefd4b5b012983622078f3bb8 (patch)
tree3f871a21527fde955b336ebdddfe3626b06a9710 /src/lookup
parent9175eca04bac68fa4be1a6e1ef054ddd7f208e8c (diff)
downloadlibpinyin-912add805b79fd9fefd4b5b012983622078f3bb8.tar.gz
libpinyin-912add805b79fd9fefd4b5b012983622078f3bb8.tar.xz
libpinyin-912add805b79fd9fefd4b5b012983622078f3bb8.zip
fixes get_best_match method
Diffstat (limited to 'src/lookup')
-rw-r--r--src/lookup/pinyin_lookup2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/pinyin_lookup2.cpp b/src/lookup/pinyin_lookup2.cpp
index 42bbd0e..dd5391d 100644
--- a/src/lookup/pinyin_lookup2.cpp
+++ b/src/lookup/pinyin_lookup2.cpp
@@ -262,7 +262,7 @@ bool PinyinLookup2::get_best_match(TokenVector prefixes,
(m_constraints, lookup_constraint_t, m);
if (CONSTRAINT_NOSEARCH == next_constraint->m_type)
- break;
+ continue;
m_phrase_index->clear_ranges(ranges);