mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2026-01-10 04:42:35 +08:00
Version 1.1
* remove warning about not using Python interface * messages translate into English as fcitx supports more and more languages
This commit is contained in:
parent
748342ed76
commit
f83971b7f4
3 changed files with 21 additions and 18 deletions
|
|
@ -16,7 +16,7 @@ def fcitxtalk(command=None):
|
|||
try:
|
||||
sock.connect(fcitxsocketfile)
|
||||
except socket.error:
|
||||
vim.command('echohl WarningMsg | echo "fcitx.vim: socket 连接出错" | echohl NONE')
|
||||
vim.command('echohl WarningMsg | echo "fcitx.vim: socket connection error" | echohl NONE')
|
||||
return
|
||||
try:
|
||||
if not command:
|
||||
|
|
@ -27,7 +27,7 @@ def fcitxtalk(command=None):
|
|||
elif command == 'o':
|
||||
sock.send(FCITX_OPEN)
|
||||
else:
|
||||
raise ValueError('未知命令')
|
||||
raise ValueError('unknown fcitx command')
|
||||
finally:
|
||||
sock.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue