From 0fed25f4616de9e97eae4478cd944e7bd7b3409b Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 22 Apr 2003 12:32:43 +0000 Subject: 18458: handle the prefix-needed style in _describe -o and new completion for renice --- Completion/Base/Utility/_describe | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Completion/Base/Utility/_describe') 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 -- cgit 1.4.1