diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2011-05-24 01:09:46 +0000 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2011-05-24 01:09:46 +0000 |
commit | 4c3efc94cccd4194f1c4e28561a0a1f86f420936 (patch) | |
tree | 9f4416fac6d3a5bef319ab42394178d20d7a037a /Completion/Base | |
parent | 0d022939a5aa063f2f1a5192dfa470165d915c3c (diff) | |
download | zsh-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_complete | 2 |
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 |