summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_parser2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
-rw-r--r--src/storage/pinyin_parser2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp
index 4a20e1b..6884f8a 100644
--- a/src/storage/pinyin_parser2.cpp
+++ b/src/storage/pinyin_parser2.cpp
@@ -1154,13 +1154,13 @@ int ChewingDirectParser2::parse(pinyin_option_t options,
}
/* skip consecutive spaces */
- for (i = cur; i < len; ++i) {
+ for (i = next; i < len; ++i) {
if (' ' != str[i] && '\'' != str[i])
break;
}
- next = cur;
- parsed_len = next;
+ cur = i;
+ parsed_len = i;
}
return parsed_len;