Permalink
Browse files

better fcitx.vim, ignore empty recv result

  • Loading branch information...
lilydjwg committed Dec 10, 2012
1 parent 8f57436 commit c8cad35a6d667b772b924289a384e795f77cf7ec
Showing with 6 additions and 1 deletion.
  1. +5 −0 plugin/fcitx.py
  2. +1 −1 plugin/fcitx.vim
View
@@ -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()
View
@@ -1,7 +1,7 @@
scriptencoding utf-8
" fcitx.vim remember fcitx's input state for each buffer
" Author: lilydjwg
-" Version: 1.2.2
+" Version: 1.2.3
" URL: http://www.vim.org/scripts/script.php?script_id=3764
" ---------------------------------------------------------------------
" Load Once:

0 comments on commit c8cad35

Please sign in to comment.