summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-10-16 17:14:48 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-10-18 01:34:52 +0000
commit13cfa036c8f9dd02688d3cb860abc75bcc64827d (patch)
treee8254b42a79002a59de972bedd92b82898593bbe /Completion/Zsh/Command
parenta8754b63fc505817a49b4e2de4c3b2f70382a52c (diff)
downloadzsh-13cfa036c8f9dd02688d3cb860abc75bcc64827d.tar.gz
zsh-13cfa036c8f9dd02688d3cb860abc75bcc64827d.tar.xz
zsh-13cfa036c8f9dd02688d3cb860abc75bcc64827d.zip
39657: Make a helper function global.
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r--Completion/Zsh/Command/_zstyle16
1 files changed, 0 insertions, 16 deletions
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-}
 }