mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2026-01-11 05:12:36 +08:00
support abstract sockets
This commit is contained in:
parent
dc5455d2f2
commit
8a4b2203f5
2 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue