mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2025-12-26 18:14:57 +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)
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue