about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-03 12:56:31 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-03 12:56:31 +0000
commitbd6aa28b26ee2ab109289775a21a6f6c3177adc0 (patch)
treea87842e8a94bbcd3cf235942e481befb61ffca6d /Completion
parentb5019ef4e540008b9438b3cf4f06daa5f04d5bcc (diff)
downloadzsh-bd6aa28b26ee2ab109289775a21a6f6c3177adc0.tar.gz
zsh-bd6aa28b26ee2ab109289775a21a6f6c3177adc0.tar.xz
zsh-bd6aa28b26ee2ab109289775a21a6f6c3177adc0.zip
Make style-list optional
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Commands/_complete_help25
1 files changed, 13 insertions, 12 deletions
diff --git a/Completion/Commands/_complete_help b/Completion/Commands/_complete_help
index cfc922df5..13a230e6e 100644
--- a/Completion/Commands/_complete_help
+++ b/Completion/Commands/_complete_help
@@ -44,21 +44,22 @@ tags in context :completion:${i}:"
     text="${text}${tmp}"
   done
 
-  text="$text
+  if [[ ${NUMERIC:-1} -ne 1 ]]; then
+    text="$text
 "
-  for i in "${(@ok)help_sfuncs}"; do
-    text="${text}
+    for i in "${(@ok)help_sfuncs}"; do
+      text="${text}
 styles in context ${i}"
-    tmp=()
-    for j in "${(@s.:.)help_sfuncs[$i][2,-1]}"; do
-      tmp=( "$tmp[@]" "${(@s.,.)help_styles[${i}${j}][2,-1]}" )
-    done
-    zformat -a tmp '  (' "$tmp[@]"
-    tmp=( '
+      tmp=()
+      for j in "${(@s.:.)help_sfuncs[$i][2,-1]}"; do
+        tmp=( "$tmp[@]" "${(@s.,.)help_styles[${i}${j}][2,-1]}" )
+      done
+      zformat -a tmp '  (' "$tmp[@]"
+      tmp=( '
     '${^tmp}')' )
-    text="${text}${tmp}"
-  done
-
+      text="${text}${tmp}"
+    done
+  fi
   compstate[list]='list force'
   compstate[insert]=''