about summary refs log tree commit diff
path: root/Functions/Zle
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-08-14 13:40:53 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-08-14 13:40:53 +0000
commit20c52f622154ed00fac8ed3cf6416e955551d372 (patch)
tree60df4353bc9e9db78b97f62bc0144cf0f9948fd8 /Functions/Zle
parent7142697448656b473f84607626122215661b525b (diff)
downloadzsh-20c52f622154ed00fac8ed3cf6416e955551d372.tar.gz
zsh-20c52f622154ed00fac8ed3cf6416e955551d372.tar.xz
zsh-20c52f622154ed00fac8ed3cf6416e955551d372.zip
28852: Use syntax that doesn't depend on SHORT_LOOPS being set.
Diffstat (limited to 'Functions/Zle')
-rw-r--r--Functions/Zle/match-words-by-style3
1 files changed, 1 insertions, 2 deletions
diff --git a/Functions/Zle/match-words-by-style b/Functions/Zle/match-words-by-style
index 69ceba76a..b387828f3 100644
--- a/Functions/Zle/match-words-by-style
+++ b/Functions/Zle/match-words-by-style
@@ -220,8 +220,7 @@ if [[ $wordstyle = *subword* ]]; then
 fi
 
 match=()
-charskip=
-repeat $skip charskip+=\?
+charskip=${(l:skip::?:)}
 
 eval pat2='${RBUFFER##(#b)('${charskip}${spacepat}')('\
 ${wordpat2}')('${spacepat}')}'