From 37076840a96fe7a2018392cbad34721b46d2e567 Mon Sep 17 00:00:00 2001
From: Yuanle Song <sylecn@gmail.com>
Date: Tue, 4 Feb 2020 23:26:24 +0800
Subject: [PATCH] v2.2.1 should call (zero-input-pinyin-register-im)

once when the code is moved into a function.
---
 zero-input-framework.el | 2 +-
 zero-input-pinyin.el    | 2 ++
 zero-input.el           | 6 ++++--
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/zero-input-framework.el b/zero-input-framework.el
index f425630..b71500d 100644
--- a/zero-input-framework.el
+++ b/zero-input-framework.el
@@ -133,7 +133,7 @@ If item is not in lst, return nil."
 
 ;; zero-input-el version
 (defvar zero-input-version nil "Zero package version.")
-(setq zero-input-version "2.2.0")
+(setq zero-input-version "2.2.1")
 
 ;; FSM state
 (defconst zero-input--state-im-off 'IM-OFF)
diff --git a/zero-input-pinyin.el b/zero-input-pinyin.el
index 3f0df81..bf634fb 100644
--- a/zero-input-pinyin.el
+++ b/zero-input-pinyin.el
@@ -367,6 +367,8 @@ DIGIT 0 means delete 10th candidate."
       (:preedit-start . zero-input-pinyin-preedit-start)
       (:preedit-end . zero-input-pinyin-preedit-end)))))
 
+(zero-input-pinyin-register-im)
+
 ;;============
 ;; public API
 ;;============
diff --git a/zero-input.el b/zero-input.el
index a213caf..167cc74 100644
--- a/zero-input.el
+++ b/zero-input.el
@@ -12,7 +12,7 @@
 ;; See the License for the specific language governing permissions and
 ;; limitations under the License.
 
-;; Version: 2.2.0
+;; Version: 2.2.1
 ;; URL: https://gitlab.emacsos.com/sylecn/zero-el
 ;; Package-Requires: ((emacs "24.3") (s "1.2.0"))
 
@@ -246,7 +246,7 @@ If item is not in lst, return nil."
 
 ;; zero-input-el version
 (defvar zero-input-version nil "Zero package version.")
-(setq zero-input-version "2.2.0")
+(setq zero-input-version "2.2.1")
 
 ;; FSM state
 (defconst zero-input--state-im-off 'IM-OFF)
@@ -1541,6 +1541,8 @@ DIGIT 0 means delete 10th candidate."
       (:preedit-start . zero-input-pinyin-preedit-start)
       (:preedit-end . zero-input-pinyin-preedit-end)))))
 
+(zero-input-pinyin-register-im)
+
 ;;============
 ;; public API
 ;;============
-- 
GitLab