Skip to content

Commit

Permalink
fix(single_char_filter): broken in librime 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Jun 20, 2019
1 parent 17a80f8 commit 6948a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/gear/single_char_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bool SingleCharFirstTranslation::Rearrange() {
while (!translation_->exhausted()) {
auto cand = translation_->Peek();
auto phrase = As<Phrase>(Candidate::GetGenuineCandidate(cand));
if (!phrase || phrase->type() != "table" || phrase->type() != "user_table") {
if (!phrase || (phrase->type() != "table" && phrase->type() != "user_table")) {
break;
}
if (unistrlen(cand->text()) == 1) {
Expand Down

0 comments on commit 6948a62

Please sign in to comment.