diff options
-rw-r--r-- | Completion/Core/.distfiles | 2 | ||||
-rw-r--r-- | Completion/Core/_call | 13 | ||||
-rw-r--r-- | Doc/Zsh/compsys.yo | 4 |
3 files changed, 14 insertions, 5 deletions
diff --git a/Completion/Core/.distfiles b/Completion/Core/.distfiles index 2925c6368..0c85315fb 100644 --- a/Completion/Core/.distfiles +++ b/Completion/Core/.distfiles @@ -1,6 +1,6 @@ DISTFILES_SRC=' .distfiles - _alternative _approximate _compalso _complete _correct _description + _alternative _approximate _call _compalso _complete _correct _description _expand _files _funcall _list _main_complete _match _menu _multi_parts _message _normal _oldlist _options _parameters _path_files _prefix _requested _sep_parts diff --git a/Completion/Core/_call b/Completion/Core/_call new file mode 100644 index 000000000..345dae50d --- /dev/null +++ b/Completion/Core/_call @@ -0,0 +1,13 @@ +#autoload + +local tmp + +if zstyle -s ":completion:${curcontext}:${1}" command tmp; then + if [[ "$tmp" = -* ]]; then + eval "$tmp[2,-1]" "$argv[2,-1]" + else + eval "$tmp" + fi +else + eval "$argv[2,-1]" +fi diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index bc5c70ef4..cce2dcebf 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -1484,10 +1484,6 @@ item(tt(users-hosts-ports))( Like tt(users-hosts) but used for commands like tt(telnet) and containing strings of the form `var(user)tt(@)var(host)tt(:)var(port)'. ) -item(tt(users-hosts-ports))( -Like tt(users-hosts) but used for commands like tt(telnet) and -containing strings of the form `var(user)tt(@)var(host)tt(:)var(port)'. -) item(tt(verbose))( This is used in several contexts to decide if only a simple or a verbose list of matches should be generated. For example some commands |