mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 07:10:58 +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);
|
mpl - rpl, 0);
|
||||||
pli = matchparts;
|
pli = matchparts;
|
||||||
}
|
}
|
||||||
r = dupstring(matchbuf);
|
r = dupstring(matchbuf ? matchbuf : "");
|
||||||
|
|
||||||
*clp = pli;
|
*clp = pli;
|
||||||
|
|
||||||
|
@ -7133,7 +7133,8 @@ permmatches(void)
|
||||||
((g->flags & CGF_NOSORT) ? 0 : 2),
|
((g->flags & CGF_NOSORT) ? 0 : 2),
|
||||||
&nn, &nl);
|
&nn, &nl);
|
||||||
g->mcount = nn;
|
g->mcount = nn;
|
||||||
g->lcount = nn - nl;
|
if ((g->lcount = nn - nl) < 0)
|
||||||
|
g->lcount = 0;
|
||||||
if (g->ylist) {
|
if (g->ylist) {
|
||||||
g->lcount = arrlen(g->ylist);
|
g->lcount = arrlen(g->ylist);
|
||||||
smatches = 2;
|
smatches = 2;
|
||||||
|
|
Loading…
Reference in a new issue