summaryrefslogtreecommitdiff
path: root/plugins/zsh-navigation-tools/n-list
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-11-06 09:28:42 -0700
committerTuowen Zhao <ztuowen@gmail.com>2016-11-06 09:28:42 -0700
commitcd03efc2e5abc2925a0fe4e17f900bae0858b451 (patch)
tree8cbfca99a7a93008ccce68b2444009d4c1b59971 /plugins/zsh-navigation-tools/n-list
parentc24de867a4d036af486fdaa77b0fcccb148e2b98 (diff)
parent0b340bc3a5c58609a07987b296f773eaea17b274 (diff)
downloadzsh-cd03efc2e5abc2925a0fe4e17f900bae0858b451.tar.gz
zsh-cd03efc2e5abc2925a0fe4e17f900bae0858b451.tar.bz2
zsh-cd03efc2e5abc2925a0fe4e17f900bae0858b451.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/zsh-navigation-tools/n-list')
-rw-r--r--plugins/zsh-navigation-tools/n-list3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/zsh-navigation-tools/n-list b/plugins/zsh-navigation-tools/n-list
index f3d2e5b3e..3fe5542a6 100644
--- a/plugins/zsh-navigation-tools/n-list
+++ b/plugins/zsh-navigation-tools/n-list
@@ -310,8 +310,9 @@ while (( 1 )); do
colsearch_pattern="${search_buffer// ##/|(#a2)}"
list=( "${(@M)list:#(#ia2)*$~search_pattern*}" )
else
- # Patterns will be *foo*~^*bar* and (foo|bar)
+ # Pattern will be *foo*~^*bar* (inventor: Mikael Magnusson)
search_pattern="${search_buffer// ##/*~^*}"
+ # Pattern will be (foo|bar)
colsearch_pattern="${search_buffer// ##/|}"
list=( "${(@M)list:#(#i)*$~search_pattern*}" )
fi