From 35b2633ad941966f5fca07b625a594a5b68c0fdb Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 15 Nov 1999 12:01:46 +0000 Subject: manual/8639 --- Completion/Core/_menu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Completion/Core/_menu') 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 -- cgit 1.4.1