mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2026-01-27 18:57:13 +08:00
don't execute when executing a macro
This commit is contained in:
parent
2e0506f2b5
commit
1c152e77ac
1 changed files with 5 additions and 5 deletions
|
|
@ -16,13 +16,13 @@ try " abort on fail
|
||||||
exe 'py3file' expand('<sfile>:r') . '.py'
|
exe 'py3file' expand('<sfile>:r') . '.py'
|
||||||
if py3eval('fcitx_loaded')
|
if py3eval('fcitx_loaded')
|
||||||
if exists('##InsertLeavePre')
|
if exists('##InsertLeavePre')
|
||||||
au InsertLeavePre * py3 fcitx2en()
|
au InsertLeavePre * if reg_executing() == "" | exec "py3 fcitx2en()" | endif
|
||||||
else
|
else
|
||||||
au InsertLeave * py3 fcitx2en()
|
au InsertLeave * if reg_executing() == "" | exec "py3 fcitx2en()" | endif
|
||||||
endif
|
endif
|
||||||
au InsertEnter * py3 fcitx2zh()
|
au InsertEnter * if reg_executing() == "" | exec "py3 fcitx2zh()" | endif
|
||||||
au CmdlineEnter [/\?] py3 fcitx2zh()
|
au CmdlineEnter [/\?] if reg_executing() == "" | exec "py3 fcitx2zh()" | endif
|
||||||
au CmdlineLeave [/\?] py3 fcitx2en()
|
au CmdlineLeave [/\?] if reg_executing() == "" | exec "py3 fcitx2en()" | endif
|
||||||
endif
|
endif
|
||||||
endtry
|
endtry
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue