From 13cfa036c8f9dd02688d3cb860abc75bcc64827d Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 16 Oct 2016 17:14:48 +0000 Subject: 39657: Make a helper function global. --- Completion/Zsh/Command/_zstyle | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'Completion/Zsh/Command') diff --git a/Completion/Zsh/Command/_zstyle b/Completion/Zsh/Command/_zstyle index 20ff47f87..dcebc6faf 100644 --- a/Completion/Zsh/Command/_zstyle +++ b/Completion/Zsh/Command/_zstyle @@ -4,22 +4,6 @@ local state context ostate line expl ctop suf local nm=$compstate[nmatches] taglist patterns pstyles contexts typeset -A opt_args styles -(( $+functions[_completers] )) || -_completers() { - # option: -p - needs a `_' prefix - local us - local -a disp list expl - - list=( complete approximate correct match expand list menu oldlist - ignored prefix history ) - zparseopts -D -K -E 'p=us' - [[ -n "$us" ]] && us='_' - zstyle -t ":completion:${curcontext}:completers" prefix-hidden && - disp=(-d list) - _wanted completers expl 'completer' \ - compadd "$@" "$disp[@]" - "$us${^list[@]}" -} - _vcs_info_hooks() { compadd - ${functions[(I)+vi-*]#+vi-} } -- cgit 1.4.1