about summary refs log tree commit diff
path: root/Completion/Base/_parameter
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/_parameter')
-rw-r--r--Completion/Base/_parameter6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Base/_parameter b/Completion/Base/_parameter
index b235a5fee..5f6f56db2 100644
--- a/Completion/Base/_parameter
+++ b/Completion/Base/_parameter
@@ -1,3 +1,7 @@
 #compdef -parameter-
 
-_parameters -S ' ' -r '['
+if [[ "$compstate[insert]" = *menu* ]]; then
+  _parameters
+else
+  _parameters -S ' ' -r '['
+fi