diff --git a/plugin/fcitx.py b/plugin/fcitx.py index 546e9f9..2b1c794 100644 --- a/plugin/fcitx.py +++ b/plugin/fcitx.py @@ -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) diff --git a/plugin/fcitx.vim b/plugin/fcitx.vim index 9c63f3d..d654d8e 100644 --- a/plugin/fcitx.vim +++ b/plugin/fcitx.vim @@ -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: