about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-05-24 01:09:46 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-05-24 01:09:46 +0000
commit4c3efc94cccd4194f1c4e28561a0a1f86f420936 (patch)
tree9f4416fac6d3a5bef319ab42394178d20d7a037a /Completion/Base
parent0d022939a5aa063f2f1a5192dfa470165d915c3c (diff)
downloadzsh-4c3efc94cccd4194f1c4e28561a0a1f86f420936.tar.gz
zsh-4c3efc94cccd4194f1c4e28561a0a1f86f420936.tar.xz
zsh-4c3efc94cccd4194f1c4e28561a0a1f86f420936.zip
29338: fix pattern in _main_complete for insert-tab.
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Core/_main_complete2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete
index c7d0d5f4d..c50ff9db4 100644
--- a/Completion/Base/Core/_main_complete
+++ b/Completion/Base/Core/_main_complete
@@ -51,7 +51,7 @@ if [[ ( "$tmp" = *pending(|[[:blank:]]*) && PENDING -gt 0 ) ||
 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