summary refs log tree commit diff
path: root/Completion/Base/Utility
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-04-22 12:32:43 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-04-22 12:32:43 +0000
commit0fed25f4616de9e97eae4478cd944e7bd7b3409b (patch)
treedf9a368d070dcf9ec496eb05b25f92826cc6cbdd /Completion/Base/Utility
parentc1e87808acd58618fe3e7fdeda6eb731a3708a65 (diff)
downloadzsh-0fed25f4616de9e97eae4478cd944e7bd7b3409b.tar.gz
zsh-0fed25f4616de9e97eae4478cd944e7bd7b3409b.tar.xz
zsh-0fed25f4616de9e97eae4478cd944e7bd7b3409b.zip
18458: handle the prefix-needed style in _describe -o and new completion for renice
Diffstat (limited to 'Completion/Base/Utility')
-rw-r--r--Completion/Base/Utility/_describe4
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Base/Utility/_describe b/Completion/Base/Utility/_describe
index eafdcc35b..f2f59085f 100644
--- a/Completion/Base/Utility/_describe
+++ b/Completion/Base/Utility/_describe
@@ -20,6 +20,10 @@ elif [[ "$1" = -t* ]]; then
   shift
 fi
 
+[[ "$_type" = options && ! -prefix [-+]* ]] && \
+    zstyle -T ":completion:${curcontext}:options" prefix-needed &&
+        return 1
+
 # Do the tests. `showd' is set if the descriptions should be shown.
 
 zstyle -T ":completion:${curcontext}:$_type" verbose && _showd=yes