diff options
-rw-r--r-- | src/pinyin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index c15e38b..203771d 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -2868,7 +2868,7 @@ bool pinyin_remember_user_input(pinyin_instance_t * instance, phrase_index->prepare_tokens(tokens); for (glong i = 0; i < phrase_length; ++i) { phrase_token_t token = null_token; - ucs4_t character = phrase[i]; + ucs4_t character = ucs4_phrase[i]; phrase_index->clear_tokens(tokens); int retval = phrase_table->search(1, &character, tokens); |