Skip to content

Commit

Permalink
Merge branch 'combo_switch' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn committed Oct 8, 2023
2 parents a5d47ae + b952c67 commit 25b6cb5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/rime/gear/simplifier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,13 @@ bool SimplifiedTranslation::Replenish() {
}

an<Translation> Simplifier::Apply(an<Translation> translation,
CandidateList* candidates) {
if (!engine_->context()->get_option(option_name_)) { // off
return translation;
CandidateList* candidates) {
vector<string> option_list;
boost::split(option_list, option_name_, boost::is_any_of("#"));
for (auto &opt: option_list) {
if (!engine_->context()->get_option(opt)) { // off
return translation;
}
}
if (!initialized_) {
Initialize();
Expand Down

0 comments on commit 25b6cb5

Please sign in to comment.