From 27141315a2e6d9df427ea737beff66ebbc17f706 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Sun, 24 Mar 2019 14:10:25 +0800 Subject: [PATCH] fix(syllabifier): enable_completion not working Closes #343 --- src/rime/algo/syllabifier.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rime/algo/syllabifier.cc b/src/rime/algo/syllabifier.cc index e1ada1084..253caf950 100644 --- a/src/rime/algo/syllabifier.cc +++ b/src/rime/algo/syllabifier.cc @@ -188,7 +188,7 @@ int Syllabifier::BuildSyllableGraph(const string &input, good.insert(i); } - if (corrector_ && farthest < input.length()) { + if (enable_completion_ && farthest < input.length()) { DLOG(INFO) << "completion enabled"; const size_t kExpandSearchLimit = 512; vector keys;