Skip to content

Commit

Permalink
fix(speller): consider genuine simple cands when auto select
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf authored and lotem committed Jul 28, 2024
1 parent f81c971 commit eaeb845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rime/gear/speller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ static inline bool is_table_entry(const an<Candidate>& cand) {
}

static inline bool is_simple_candidate(const an<Candidate>& cand) {
return bool(As<SimpleCandidate>(cand));
auto genuine = Candidate::GetGenuineCandidate(cand);
return bool(As<SimpleCandidate>(genuine));
}

static bool is_auto_selectable(const an<Candidate>& cand,
Expand Down

0 comments on commit eaeb845

Please sign in to comment.