Skip to content

Commit 6948a62

Browse files
committed
fix(single_char_filter): broken in librime 1.5.2
1 parent 17a80f8 commit 6948a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rime/gear/single_char_filter.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bool SingleCharFirstTranslation::Rearrange() {
4040
while (!translation_->exhausted()) {
4141
auto cand = translation_->Peek();
4242
auto phrase = As<Phrase>(Candidate::GetGenuineCandidate(cand));
43-
if (!phrase || phrase->type() != "table" || phrase->type() != "user_table") {
43+
if (!phrase || (phrase->type() != "table" && phrase->type() != "user_table")) {
4444
break;
4545
}
4646
if (unistrlen(cand->text()) == 1) {

0 commit comments

Comments
 (0)