修复imchange
This commit is contained in:
parent
494c7d7a55
commit
63d15c0110
@ -3,14 +3,13 @@ local G, im = require("G"), "keyboard-us"
|
|||||||
function InsertLeave()
|
function InsertLeave()
|
||||||
local t = io.popen("fcitx5-remote -n")
|
local t = io.popen("fcitx5-remote -n")
|
||||||
im = t:read()
|
im = t:read()
|
||||||
G.cmd(":silent !fcitx5-remote -c,cr")
|
G.cmd(":silent !fcitx5-remote -c")
|
||||||
end
|
end
|
||||||
|
|
||||||
function InsertEnter()
|
function InsertEnter()
|
||||||
if im == 'pinyin'
|
if im == 'pinyin'
|
||||||
then
|
then
|
||||||
print(im)
|
G.cmd(":silent !fcitx5-remote -s pinyin")
|
||||||
G.cmd("!fcitx5-remote -s pinyin<cr>")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user