* PATCH: fix for completion with groups
@ 1999-01-05 12:09 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 1999-01-05 12:09 UTC (permalink / raw)
To: zsh-workers
Hello
This:
% compctl -J foo -k '(foo)' foo
% foo <TAB>
failed utterly.
This is caused by the old code for handling the case with only one
match which looks at the first match in the first group of
matches. But in the example above the first group doesn't have a
match, so we get a SEGV in do_single().
Bye
Sven
*** os/Zle/zle_tricky.c Tue Jan 5 13:03:03 1999
--- Src/Zle/zle_tricky.c Tue Jan 5 13:04:34 1999
***************
*** 2955,2960 ****
--- 2955,2962 ----
else if (nmatches == 1) {
/* Only one match. */
+ while (!amatches->mcount)
+ amatches = amatches->next;
do_single(amatches->matches[0]);
invalidatelist();
}
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-01-05 12:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-05 12:09 PATCH: fix for completion with groups 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).