summary refs log tree commit diff
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
parent0d022939a5aa063f2f1a5192dfa470165d915c3c (diff)
downloadzsh-4c3efc94cccd4194f1c4e28561a0a1f86f420936.tar.gz
zsh-4c3efc94cccd4194f1c4e28561a0a1f86f420936.tar.xz
zsh-4c3efc94cccd4194f1c4e28561a0a1f86f420936.zip
29338: fix pattern in _main_complete for insert-tab.
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Base/Core/_main_complete2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ce8c1f3f..fe0ff909f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-23  Mikael Magnusson <mikachu@gmail.com>
+
+	* 29338: Completion/Base/Core/_main_complete: Correct pattern
+	checking for true value in insert-tab style.
+
 2011-05-23  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Config/version.mk: 4.3.11-dev-4.
@@ -14789,5 +14794,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5321 $
+* $Revision: 1.5322 $
 *****************************************************
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