summary refs log tree commit diff
path: root/Completion/Zsh/Command/_zle
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2011-12-13 17:43:01 +0000
committerBart Schaefer <barts@users.sourceforge.net>2011-12-13 17:43:01 +0000
commit3f98949ca8915d2d9c095ccaa65b308ab502b6c6 (patch)
treedfca163f8521ee50f1d9ef6d13b566af72df288b /Completion/Zsh/Command/_zle
parent93139f39f1efdb3f500b61b49045369e040770c0 (diff)
downloadzsh-3f98949ca8915d2d9c095ccaa65b308ab502b6c6.tar.gz
zsh-3f98949ca8915d2d9c095ccaa65b308ab502b6c6.tar.xz
zsh-3f98949ca8915d2d9c095ccaa65b308ab502b6c6.zip
30012: add $state_descr
Diffstat (limited to 'Completion/Zsh/Command/_zle')
-rw-r--r--Completion/Zsh/Command/_zle2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_zle b/Completion/Zsh/Command/_zle
index 80f217711..2bfc708e5 100644
--- a/Completion/Zsh/Command/_zle
+++ b/Completion/Zsh/Command/_zle
@@ -44,7 +44,7 @@ case "$state[1]" in
       '(-)*:widget arguments: ' && ret=0
     ;;
   (widget*)
-    _wanted -C "$context[1]" widgets expl widget compadd -k widgets && ret=0
+    _wanted -C "$context[1]" widgets expl "${state_descr[1]:-widget}" compadd -k widgets && ret=0
     ;&
   (function)
     [[ $state[1] != *function ]] ||	# Handle fall-through