From 63d15c011039fffaa0c843a6ff93a54b1f565a3e Mon Sep 17 00:00:00 2001 From: QQ <1770362456@qq.com> Date: Sat, 28 Jan 2023 18:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dimchange?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/Plugin/Imchange.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/Plugin/Imchange.lua b/lua/Plugin/Imchange.lua index 6ea2016..c4191f1 100644 --- a/lua/Plugin/Imchange.lua +++ b/lua/Plugin/Imchange.lua @@ -3,14 +3,13 @@ local G, im = require("G"), "keyboard-us" function InsertLeave() local t = io.popen("fcitx5-remote -n") im = t:read() - G.cmd(":silent !fcitx5-remote -c,cr") + G.cmd(":silent !fcitx5-remote -c") end function InsertEnter() if im == 'pinyin' then - print(im) - G.cmd("!fcitx5-remote -s pinyin") + G.cmd(":silent !fcitx5-remote -s pinyin") end end