1
0
Fork 0
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:
Tanaka Akira 1999-10-12 07:20:00 +00:00
parent 2dc06f464c
commit df53b49ccd

View file

@ -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++;