From 94a1657ade26316f9bfbe37fccdae0eda7a5ecdf Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Wed, 23 Oct 2019 20:12:06 +0800 Subject: [PATCH] v0.9.1 bugfix: should always enable incomplete pinyin support when parsing pinyin. otherwise, preedit_str such as rug(uo) will not show two word candidates --- meson.build | 2 +- zero-pinyin-service.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 7dacfab..b14609f 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ # -*- mode: conf -*- project('zero-pinyin-service', ['c', 'cpp'], - version: '0.9.0', + version: '0.9.1', license: 'GPL', default_options: [ 'warning_level=2', diff --git a/zero-pinyin-service.c b/zero-pinyin-service.c index ebc5c18..d8fa410 100644 --- a/zero-pinyin-service.c +++ b/zero-pinyin-service.c @@ -366,7 +366,8 @@ to_pyzy_flag(const guint fuzzy_flag) if (fuzzy_flag & FUZZY_FLAG_L_N) { result = result | PINYIN_FUZZY_L_N | PINYIN_FUZZY_N_L; } - return result; + /* always enable incomplete pinyin support */ + return result | PINYIN_INCOMPLETE_PINYIN; } void -- GitLab