From 219e7ab4e1364cbc9e246eb3122b8fed30ec7bfe Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 30 Dec 2025 16:20:49 +0800 Subject: Update check_pinyin_options and check_chewing_options functions --- src/storage/pinyin_parser2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/storage/pinyin_parser2.cpp') diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index ce640c3..47c5876 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -46,8 +46,8 @@ static bool check_pinyin_options(pinyin_option_t options, const pinyin_index_ite } /* handle correct pinyin, currently only one flag per item. */ - flags &= PINYIN_CORRECT_ALL; - options &= PINYIN_CORRECT_ALL; + flags &= PINYIN_CORRECT_ALL | PINYIN_AMB_ALL; + options &= PINYIN_CORRECT_ALL | PINYIN_AMB_ALL; if (flags) { if ((flags & options) != flags) -- cgit