mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2026-01-11 05:12:36 +08:00
fix error handling from python to vim
This commit is contained in:
parent
d619809504
commit
695ee2b958
2 changed files with 6 additions and 2 deletions
|
|
@ -20,8 +20,10 @@ class FcitxComm():
|
|||
|
||||
try:
|
||||
Fcitx = FcitxComm()
|
||||
fcitx_loaded = True
|
||||
except dbus.exceptions.DBusException as e:
|
||||
vim.command('echohl WarningMsg | echom "fcitx.vim not loaded: %s" | echohl NONE' % e)
|
||||
fcitx_loaded = False
|
||||
|
||||
def may_reconnect(func):
|
||||
@functools.wraps(func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue