Skip to content

Commit

Permalink
🔥 Remove _force_rehash_pinyin_comp()
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jan 19, 2024
1 parent a66f596 commit 5949bc3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pinyin-completion.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,11 @@ _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

# omit original and all expansions when showing the result of user-expand
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

0 comments on commit 5949bc3

Please sign in to comment.