mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-29 19:00:57 +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);
|
||||
minfo.postbr = ztrdup(lastpostbr);
|
||||
|
||||
if (listshown)
|
||||
showinglist = -2;
|
||||
if (listshown && (lastprebr || lastpostbr)) {
|
||||
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++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue