mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2026-01-26 18:17:13 +08:00
Fix #33, display rime IME name when use fcitx
This commit is contained in:
parent
d79d816e24
commit
8decf940cd
1 changed files with 5 additions and 1 deletions
|
|
@ -19,7 +19,11 @@ class FcitxComm():
|
||||||
self.fcitx.Deactivate()
|
self.fcitx.Deactivate()
|
||||||
|
|
||||||
def current(self):
|
def current(self):
|
||||||
return self.fcitx.CurrentInputMethod()
|
ime = self.fcitx.CurrentInputMethod()
|
||||||
|
if str(ime) == 'rime':
|
||||||
|
rime = FcitxRimeComm()
|
||||||
|
ime = rime.current()
|
||||||
|
return ime
|
||||||
|
|
||||||
class FcitxRimeComm():
|
class FcitxRimeComm():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue