mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2025-12-27 02:24:57 +08:00
fix error handling from python to vim
This commit is contained in:
parent
d619809504
commit
695ee2b958
2 changed files with 6 additions and 2 deletions
|
|
@ -14,8 +14,10 @@ let g:loaded_fcitx = 1
|
|||
|
||||
try " abort on fail
|
||||
exe 'py3file' expand('<sfile>:r') . '.py'
|
||||
au InsertLeave * py3 fcitx2en()
|
||||
au InsertEnter * py3 fcitx2zh()
|
||||
if py3eval('fcitx_loaded')
|
||||
au InsertLeavePre * py3 fcitx2en()
|
||||
au InsertEnter * py3 fcitx2zh()
|
||||
endif
|
||||
endtry
|
||||
" ---------------------------------------------------------------------
|
||||
" Restoration And Modelines:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue