Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Sep 3, 2023
1 parent e825f7d commit 1f7a13c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rime/gear/reverse_lookup_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ void ReverseLookupFilter::Process(const an<Candidate>& cand) {
if (rev_dict_->ReverseLookup(phrase->text(), &codes)) {
comment_formatter_.Apply(&codes);
if (!codes.empty()) {
if (!overwrite_comment_ && !append_comment_ && cand->comment().empty()) {
phrase->set_comment(codes);
} else if (overwrite_comment_) {
if (overwrite_comment_ || cand->comment().empty()) {
phrase->set_comment(codes);
} else if (append_comment_) {
phrase->set_comment(cand->comment() + " " + codes);
Expand Down

0 comments on commit 1f7a13c

Please sign in to comment.