diff options
-rw-r--r-- | src/pinyin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index 01dcb41..268e49c 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -2481,6 +2481,9 @@ static bool _get_char_offset_recur(pinyin_instance_t * instance, const size_t newstart = key_rest.m_raw_end; + if (newstart > offset) + return true; + const ChewingKey zero_key; if (zero_key == key) { /* assume only one key here for "'" or the last key. */ |