From dff1089411738f8325ea2a8251a4638bb8aed610 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 22 Jul 2016 13:48:20 +0800 Subject: fixes a typo --- src/pinyin.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit