diff options
Diffstat (limited to 'Completion/Core/_menu')
-rw-r--r-- | Completion/Core/_menu | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Completion/Core/_menu b/Completion/Core/_menu index 4cbda4e14..e9558fe05 100644 --- a/Completion/Core/_menu +++ b/Completion/Core/_menu @@ -1,10 +1,16 @@ #autoload +local curcontext="$curcontext" + +# Probably set initial context. + +[[ -z "$curcontext" ]] && curcontext=':menu' + # This completer is an example showing how menucompletion can be # implemented with the new completion system. # Use this one before the normal _complete completer, as in: # -# compconf completer=_menu:_complete +# compstyle "*" completer _menu _complete if [[ -n "$compstate[old_list]" ]]; then |