From 3c3ffa433dca8c6c396d1cca734bc349a91b9797 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 4 Feb 2000 12:14:06 +0000 Subject: zsh-workers/9562 --- Completion/Base/_arg_compile | 2 +- Completion/Base/_arguments | 6 +----- Completion/Base/_command_names | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'Completion/Base') diff --git a/Completion/Base/_arg_compile b/Completion/Base/_arg_compile index 44db86abe..e37c869ee 100644 --- a/Completion/Base/_arg_compile +++ b/Completion/Base/_arg_compile @@ -71,7 +71,7 @@ # option -d follow close means "debug level" \ # option -k means "function names" action '->pair' \ # option -m means "minimum execution count" \ -# argument means executable action '_files -g \*\(\*\)' \ +# argument means executable action '_files -g \*\(-\*\)' \ # argument means "profile file" action '_files -g gmon.\*' \ # help '*=name*' means "function name" action '->funcs' \ # help '*=dirs*' means "directory" action _dir_list diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index fb28438e2..19288b7ca 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -134,11 +134,7 @@ if (( long )); then tmp=("${(@)tmp:#*\=*}") tmpo=("${(@)${(@)tmpo%%\=*}//[^a-z0-9-]}") - if [[ "$descr" = ::* ]]; then - cache=( "$cache[@]" "${(@)^tmpo}=${descr[2,-1]}" ) - else - cache=( "$cache[@]" "${(@)^tmpo}=${descr}" ) - fi + cache=( "$cache[@]" "${(@)^tmpo}=${descr}" ) fi # Everything else is just added as a option without arguments. diff --git a/Completion/Base/_command_names b/Completion/Base/_command_names index 141e30614..755e5ef15 100644 --- a/Completion/Base/_command_names +++ b/Completion/Base/_command_names @@ -8,7 +8,7 @@ local args defs defs=( 'commands:external command:compadd - ${(@k)commands}' - 'executables:executable file or directory:_path_files -/g \*\(\*\)' + 'executables:executable file or directory:_path_files -/g \*\(-\*\)' ) if [[ "$1" = -e ]]; then -- cgit 1.4.1