From bd6aa28b26ee2ab109289775a21a6f6c3177adc0 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 3 Apr 2000 12:56:31 +0000 Subject: Make style-list optional --- Completion/Commands/_complete_help | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'Completion/Commands') 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]='' -- cgit 1.4.1