mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-02 20:00:57 +02:00
zsh-workers/7974
This commit is contained in:
parent
3b0bd4cf4a
commit
cf92dbd40b
1 changed files with 11 additions and 1 deletions
|
@ -7272,13 +7272,23 @@ makearray(LinkList l, int s, int *np, int *nlp, int *llp)
|
|||
nl++;
|
||||
}
|
||||
*cp = NULL;
|
||||
} else
|
||||
} else {
|
||||
for (ap = rp; *ap; ap++) {
|
||||
for (bp = cp = ap + 1; *bp; bp++) {
|
||||
if (!matcheq(*ap, *bp))
|
||||
*cp++ = *bp;
|
||||
else
|
||||
n--;
|
||||
}
|
||||
*cp = NULL;
|
||||
}
|
||||
for (ap = rp; *ap; ap++) {
|
||||
if ((*ap)->disp && ((*ap)->flags & CMF_DISPLINE))
|
||||
ll++;
|
||||
if ((*ap)->flags & CMF_NOLIST)
|
||||
nl++;
|
||||
}
|
||||
}
|
||||
if (np)
|
||||
*np = n;
|
||||
if (nlp)
|
||||
|
|
Loading…
Reference in a new issue