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