mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 07:10:58 +02:00
zsh-workers/8215
This commit is contained in:
parent
2dc06f464c
commit
df53b49ccd
1 changed files with 11 additions and 2 deletions
|
@ -577,8 +577,17 @@ acceptlast(void)
|
||||||
zsfree(minfo.postbr);
|
zsfree(minfo.postbr);
|
||||||
minfo.postbr = ztrdup(lastpostbr);
|
minfo.postbr = ztrdup(lastpostbr);
|
||||||
|
|
||||||
if (listshown)
|
if (listshown && (lastprebr || lastpostbr)) {
|
||||||
showinglist = -2;
|
Cmgroup g;
|
||||||
|
Cmatch *m;
|
||||||
|
|
||||||
|
for (g = amatches, m = NULL; g && (!m || !*m); g = g->next)
|
||||||
|
for (m = g->matches; *m; m++)
|
||||||
|
if (!hasbrpsfx(*m, minfo.prebr, minfo.postbr)) {
|
||||||
|
showinglist = -2;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
menuacc++;
|
menuacc++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue