don't execute when executing a macro

This commit is contained in:
lilydjwg 2023-08-03 23:51:05 +08:00
parent 92247352c6
commit 451d277bbd

View file

@ -65,13 +65,13 @@ endif
" Register autocmd if successfully loaded. " Register autocmd if successfully loaded.
if exists("g:loaded_fcitx") if exists("g:loaded_fcitx")
if exists('##InsertLeavePre') if exists('##InsertLeavePre')
au InsertLeavePre * call Fcitx2en() au InsertLeavePre * if reg_executing() == "" | call Fcitx2en() | endif
else else
au InsertLeave * call Fcitx2en() au InsertLeave * if reg_executing() == "" | call Fcitx2en() | endif
endif endif
au InsertEnter * call Fcitx2zh() au InsertEnter * if reg_executing() == "" | call Fcitx2zh() | endif
au CmdlineEnter [/\?] call Fcitx2zh() au CmdlineEnter [/\?] if reg_executing() == "" | call Fcitx2zh() | endif
au CmdlineLeave [/\?] call Fcitx2en() au CmdlineLeave [/\?] if reg_executing() == "" | call Fcitx2en() | endif
endif endif
" --------------------------------------------------------------------- " ---------------------------------------------------------------------