about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_main_complete2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index b677bc422..b0798f67d 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -49,7 +49,7 @@ if [[ "$tmp" = *pending(|[[:blank:]]*) ||
 fi
 
 if [[ "$compstate[insert]" = tab* ]]; then
-  { "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) &&
+  { [[ "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) ]] &&
     { [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
         zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0