update from vim-scripts mirror

This commit is contained in:
lilydjwg 2013-11-05 11:02:56 +08:00
parent 9c757c161d
commit dc5455d2f2
3 changed files with 10 additions and 5 deletions

View file

@ -27,6 +27,11 @@ def fcitxtalk(command=None):
sock.send(FCITX_OPEN)
else:
raise ValueError('unknown fcitx command')
except struct.error:
# if there's a proxy of some kind, connect and send *will* succeed when
# fcitx isn't there.
vim.command('echohl WarningMsg | echo "fcitx.vim: socket error" | echohl NONE')
return
finally:
sock.close()