diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-27 09:24:37 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-27 09:24:37 +0000 |
commit | 5d4139d4219904aab388131223bba4e1e967bf03 (patch) | |
tree | 54ba5c228e71111e1dee07f0b9bc4de3b2b8f310 | |
parent | eb2bfcd55571739549ea06b319284a92d01eeb67 (diff) | |
download | zsh-5d4139d4219904aab388131223bba4e1e967bf03.tar.gz zsh-5d4139d4219904aab388131223bba4e1e967bf03.tar.xz zsh-5d4139d4219904aab388131223bba4e1e967bf03.zip |
document _wanted -C; fix for call to _wanted in _urls (10965)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/User/_urls | 2 | ||||
-rw-r--r-- | Doc/Zsh/compsys.yo | 5 |
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 3173102f5..b72442be1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-04-27 Sven Wischnowsky <wischnow@informatik.hu-berlin.de> + * 10965: and Felix: 10952: Completion/User/_urls, + Doc/Zsh/compsys.yo: document _wanted -C; fix for call to _wanted + in _urls + * 10963: Src/Zle/complete.c: fix for parse error with left-anchored patterns diff --git a/Completion/User/_urls b/Completion/User/_urls index 4234aa274..f9c3284f7 100644 --- a/Completion/User/_urls +++ b/Completion/User/_urls @@ -49,7 +49,7 @@ local localhttp_userdir="$localhttp[3]" if [[ "$1" = -f ]]; then shift - _wanted -C -f files _files "$@" && return 0 + _wanted -C -f files expl file _files "$@" && return 0 fi ipre="$IPREFIX" diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index acaad3cc4..66d56f078 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2590,7 +2590,7 @@ while _tags; do done) ) findex(_wanted) -item(tt(_wanted) [ tt(-12VJ) ] var(tag) var(name) var(descr) var(command) var(args) ...)( +item(tt(_wanted) [ tt(-C) var(name) ] [ tt(-12VJ) ] var(tag) var(name) var(descr) var(command) var(args) ...)( In many contexts only one type of matches can be generated but even then it should be tested if the tag representing those matches is requested by the user. This function makes that easier. @@ -2607,6 +2607,9 @@ example(_wanted tag expl 'description' \ Unlike tt(_requested), however, tt(_wanted) can not be called without the var(command). That's because tt(_wanted) also implements the loop over the tags, not only the one for the labels. + +Like tt(_tags) this function supports the tt(-C) option to give a +different name for the argument context field. ) findex(_alternative) item(tt(_alternative) [ tt(-C) var(name) ] var(specs) ...)( |