diff --git a/pinyin-completion.plugin.zsh b/pinyin-completion.plugin.zsh index 06afeb5..202ef5d 100644 --- a/pinyin-completion.plugin.zsh +++ b/pinyin-completion.plugin.zsh @@ -70,12 +70,6 @@ _pinyin_comp() done } -# when command not found -_force_rehash_pinyin_comp() { - (( CURRENT == 1 )) && rehash - return 1 # Because we did not really complete anything -} - # pinyin-comp is performed as one part of user-expand zstyle ':completion:*' user-expand _pinyin_comp @@ -83,5 +77,4 @@ zstyle ':completion:*' user-expand _pinyin_comp zstyle ':completion:*:user-expand:*' tag-order expansions # make use-expand perform as last, when needed -zstyle ':completion:*' completer \ - _oldlist _expand _force_rehash_pinyin_comp _complete _match _user_expand +zstyle ':completion:*' completer _oldlist _expand _complete _match _user_expand