* PATCH: matchers in _multi_parts
@ 2001-05-31 7:14 Sven Wischnowsky
2001-05-31 7:32 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 2001-05-31 7:14 UTC (permalink / raw)
To: zsh-workers
I wonder why we didn't see before that _multi_parts didn't always use
the match specs it got.
Bye
Sven
Index: Completion/Base/Utility/_multi_parts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_multi_parts,v
retrieving revision 1.3
diff -u -r1.3 _multi_parts
--- Completion/Base/Utility/_multi_parts 2001/05/29 17:54:08 1.3
+++ Completion/Base/Utility/_multi_parts 2001/05/31 07:15:16
@@ -91,10 +91,10 @@
else
# No exact match, see how many strings match what's on the line.
- builtin compadd -O tmp1 - "${(@)${(@)matches%%${sep}*}:#}"
+ builtin compadd -O tmp1 -M "r:|${sep}=* r:|=* $matcher" - "${(@)${(@)matches%%${sep}*}:#}"
[[ $#tmp1 -eq 0 && -n "$_comp_correct" ]] &&
- compadd -O tmp1 - "${(@)${(@)matches%%${sep}*}:#}"
+ compadd -O tmp1 -M "r:|${sep}=* r:|=* $matcher" - "${(@)${(@)matches%%${sep}*}:#}"
if [[ $#tmp1 -eq 1 ]]; then
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-31 8:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-31 7:14 PATCH: matchers in _multi_parts Sven Wischnowsky
2001-05-31 7:32 ` Bart Schaefer
2001-05-31 8:18 ` Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).