From eaeb8458976990f0101b9250df83aee12d6dd10d Mon Sep 17 00:00:00 2001 From: ksqsf Date: Sun, 28 Jul 2024 04:50:51 +0200 Subject: [PATCH] fix(speller): consider genuine simple cands when auto select --- src/rime/gear/speller.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rime/gear/speller.cc b/src/rime/gear/speller.cc index f18e8482d..4213de298 100644 --- a/src/rime/gear/speller.cc +++ b/src/rime/gear/speller.cc @@ -39,7 +39,8 @@ static inline bool is_table_entry(const an& cand) { } static inline bool is_simple_candidate(const an& cand) { - return bool(As(cand)); + auto genuine = Candidate::GetGenuineCandidate(cand); + return bool(As(genuine)); } static bool is_auto_selectable(const an& cand,