mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-25 17:41:19 +02:00
zsh-workers/9746
This commit is contained in:
parent
5096ed276a
commit
767eb17ee0
1 changed files with 6 additions and 2 deletions
|
@ -1837,7 +1837,7 @@ ccmakehookfn(Hookdef dummy, struct ccmakedat *dat)
|
|||
for (n = firstnode(ccused); n; incnode(n))
|
||||
addlinknode(lastccused, getdata(n));
|
||||
} LASTALLOC;
|
||||
} else
|
||||
} else if (ccused)
|
||||
for (n = firstnode(ccused); n; incnode(n))
|
||||
if (((Compctl) getdata(n)) != &cc_dummy)
|
||||
freecompctl((Compctl) getdata(n));
|
||||
|
@ -2497,6 +2497,8 @@ static void
|
|||
makecomplistcc(Compctl cc, char *s, int incmd)
|
||||
{
|
||||
cc->refc++;
|
||||
if (!ccused)
|
||||
ccused = newlinklist();
|
||||
addlinknode(ccused, cc);
|
||||
|
||||
ccont = 0;
|
||||
|
@ -2955,11 +2957,13 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
|
|||
|
||||
ccont |= (cc->mask2 & (CC_CCCONT | CC_DEFCONT | CC_PATCONT));
|
||||
|
||||
if (incompfunc != 1 && findnode(ccstack, cc))
|
||||
if (incompfunc != 1 && ccstack && findnode(ccstack, cc))
|
||||
return;
|
||||
|
||||
MUSTUSEHEAP("complistflags");
|
||||
|
||||
if (!ccstack)
|
||||
ccstack = newlinklist();
|
||||
addlinknode(ccstack, cc);
|
||||
|
||||
if (incompfunc != 1 && allccs) {
|
||||
|
|
Loading…
Reference in a new issue