diff --git a/src/rime/gear/speller.cc b/src/rime/gear/speller.cc index 5b9888c93d..f18e8482da 100644 --- a/src/rime/gear/speller.cc +++ b/src/rime/gear/speller.cc @@ -38,12 +38,17 @@ static inline bool is_table_entry(const an& cand) { return type == "table" || type == "user_table"; } +static inline bool is_simple_candidate(const an& cand) { + return bool(As(cand)); +} + static bool is_auto_selectable(const an& cand, const string& input, const string& delimiters) { return // reaches end of input - cand->end() == input.length() && is_table_entry(cand) && + cand->end() == input.length() && + (is_table_entry(cand) || is_simple_candidate(cand)) && // no delimiters input.find_first_of(delimiters, cand->start()) == string::npos; }