about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-04 12:14:06 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-04 12:14:06 +0000
commit3c3ffa433dca8c6c396d1cca734bc349a91b9797 (patch)
tree3e64c1b3747450bca87394a65812dfdd1b7a1f82 /Completion/Base
parentf336a17793e41cd3c8e9c7a07f22471ae20f4ac7 (diff)
downloadzsh-3c3ffa433dca8c6c396d1cca734bc349a91b9797.tar.gz
zsh-3c3ffa433dca8c6c396d1cca734bc349a91b9797.tar.xz
zsh-3c3ffa433dca8c6c396d1cca734bc349a91b9797.zip
zsh-workers/9562
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_arg_compile2
-rw-r--r--Completion/Base/_arguments6
-rw-r--r--Completion/Base/_command_names2
3 files changed, 3 insertions, 7 deletions
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