From 5949bc3a16b2ca89846def385333108b9dd78a69 Mon Sep 17 00:00:00 2001 From: Wu Zhenyu Date: Fri, 19 Jan 2024 20:15:10 +0800 Subject: [PATCH] :fire: Remove _force_rehash_pinyin_comp() --- pinyin-completion.plugin.zsh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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