summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pinyin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 2aeb9d6..ac72623 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -2331,6 +2331,8 @@ static size_t _compute_zero_start(PhoneticKeyMatrix & matrix, size_t offset) {
matrix.get_item(index, 0, key, key_rest);
if (zero_key == key)
offset = index;
+ else
+ break;
}
return offset;