From 6948a623632c23ef55071b77eca32c728fd786d3 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Thu, 20 Jun 2019 13:31:22 +0800 Subject: [PATCH] fix(single_char_filter): broken in librime 1.5.2 --- src/rime/gear/single_char_filter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rime/gear/single_char_filter.cc b/src/rime/gear/single_char_filter.cc index d425ed077..3f7e81c89 100644 --- a/src/rime/gear/single_char_filter.cc +++ b/src/rime/gear/single_char_filter.cc @@ -40,7 +40,7 @@ bool SingleCharFirstTranslation::Rearrange() { while (!translation_->exhausted()) { auto cand = translation_->Peek(); auto phrase = As(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) {