about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-07 09:41:29 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-07 09:41:29 +0000
commitf321361b45dfac67efae8976b3f1ebf08e0f42f2 (patch)
tree1ab5fd3891f39754feff666d642a78573fdb267a
parent9618580a81f3162618bf675e84d8b27d4f5ec795 (diff)
downloadzsh-f321361b45dfac67efae8976b3f1ebf08e0f42f2.tar.gz
zsh-f321361b45dfac67efae8976b3f1ebf08e0f42f2.tar.xz
zsh-f321361b45dfac67efae8976b3f1ebf08e0f42f2.zip
zsh-workers/8930
-rw-r--r--Completion/Core/_setup2
-rw-r--r--Doc/Zsh/compsys.yo8
2 files changed, 9 insertions, 1 deletions
diff --git a/Completion/Core/_setup b/Completion/Core/_setup
index 683757918..dfd1b4127 100644
--- a/Completion/Core/_setup
+++ b/Completion/Core/_setup
@@ -6,7 +6,7 @@ if _style -a "$1" list-colors val; then
   if [[ "$1" = default ]]; then
     ZLS_COLORS="${(j.:.)${(@)val:gs/:/\\\:}}"
   else
-    eval "ZLS_COLORS=\"(${i})\${(j.:(${i}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
+    eval "ZLS_COLORS=\"(${1})\${(j.:(${1}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
   fi
 fi
 
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 36782f2ff..081e816da 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1673,6 +1673,14 @@ This function also uses the tt(format) style for the tt(messages) tag in
 preference to the tt(format) style for the tt(descriptions) tag. The
 latter is used only if the former is unset.
 )
+item(tt(_setup))(
+This function expects a tag as its argument and sets up the special
+parameters used by the completion system appropriately for the tag,
+using styles such as tt(list-colors) and tt(last-prompt).
+
+Note that this function is called automatically from tt(_description)
+so that one normally don't have to call it explicitly.
+)
 item(tt(_tags))(
 If called with arguments, these are taken as the names of the tags for 
 the types of matches the calling completion function can generate in