fix reconnecting not using the RIME interface

This commit is contained in:
lilydjwg 2022-11-15 16:18:44 +08:00
parent fe899f6aec
commit 7f06ccfa8a

View file

@ -35,9 +35,8 @@ class FcitxRimeComm():
try: try:
if vim.eval('get(g:, "fcitx5_rime")') == '1': if vim.eval('get(g:, "fcitx5_rime")') == '1':
Fcitx = FcitxRimeComm() FcitxComm = FcitxRimeComm
else: Fcitx = FcitxComm()
Fcitx = FcitxComm()
fcitx_loaded = True fcitx_loaded = True
except dbus.exceptions.DBusException as e: except dbus.exceptions.DBusException as e:
if not vim.vars.get('silent_unsupported'): if not vim.vars.get('silent_unsupported'):