mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-29 19:00:57 +02:00
zsh-workers/7714
This commit is contained in:
parent
1d24d00bbd
commit
1bd39e36ab
1 changed files with 3 additions and 2 deletions
|
@ -2739,7 +2739,7 @@ comp_match(char *pfx, char *sfx, char *w, Patprog cp,
|
|||
mpl - rpl, 0);
|
||||
pli = matchparts;
|
||||
}
|
||||
r = dupstring(matchbuf);
|
||||
r = dupstring(matchbuf ? matchbuf : "");
|
||||
|
||||
*clp = pli;
|
||||
|
||||
|
@ -7133,7 +7133,8 @@ permmatches(void)
|
|||
((g->flags & CGF_NOSORT) ? 0 : 2),
|
||||
&nn, &nl);
|
||||
g->mcount = nn;
|
||||
g->lcount = nn - nl;
|
||||
if ((g->lcount = nn - nl) < 0)
|
||||
g->lcount = 0;
|
||||
if (g->ylist) {
|
||||
g->lcount = arrlen(g->ylist);
|
||||
smatches = 2;
|
||||
|
|
Loading…
Reference in a new issue