* 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
* Re: PATCH: matchers in _multi_parts
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
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2001-05-31 7:32 UTC (permalink / raw)
To: zsh-workers
On May 31, 9:14am, Sven Wischnowsky wrote:
} Subject: PATCH: matchers in _multi_parts
}
} I wonder why we didn't see before that _multi_parts didn't always use
} the match specs it got.
Because it's only used in 5 completion functions out of 294?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: matchers in _multi_parts
2001-05-31 7:32 ` Bart Schaefer
@ 2001-05-31 8:18 ` Sven Wischnowsky
0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2001-05-31 8:18 UTC (permalink / raw)
To: zsh-workers
Bart Schaefer wrote:
> On May 31, 9:14am, Sven Wischnowsky wrote:
> } Subject: PATCH: matchers in _multi_parts
> }
> } I wonder why we didn't see before that _multi_parts didn't always use
> } the match specs it got.
>
> Because it's only used in 5 completion functions out of 294?
Yeah, but it's used in _tar and there it's quite obvious when trying to
complete case-insensitively.
Bye
Sven
--
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).