support abstract sockets

This commit is contained in:
lilydjwg 2013-11-05 11:03:45 +08:00
parent dc5455d2f2
commit 8a4b2203f5
2 changed files with 3 additions and 1 deletions

View file

@ -9,6 +9,8 @@ FCITX_OPEN = struct.pack('i', 1 | (1 << 16))
FCITX_CLOSE = struct.pack('i', 1)
INT_SIZE = struct.calcsize('i')
fcitxsocketfile = vim.eval('s:fcitxsocketfile')
if fcitxsocketfile[0] == '@': # abstract socket
fcitxsocketfile = '\x00' + fcitxsocketfile[1:]
def fcitxtalk(command=None):
sock = socket.socket(socket.AF_UNIX)

View file

@ -1,7 +1,7 @@
scriptencoding utf-8
" fcitx.vim remember fcitx's input state for each buffer
" Author: lilydjwg
" Version: 1.2.3
" Version: 1.2.4
" URL: http://www.vim.org/scripts/script.php?script_id=3764
" ---------------------------------------------------------------------
" Load Once: