1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 17:01:19 +02:00

another fix for completion matching, CLF_MISS in the wrong cline struct (13575)

This commit is contained in:
Sven Wischnowsky 2001-03-06 11:31:20 +00:00
parent d3c799c4fc
commit c8f2e51007
2 changed files with 11 additions and 0 deletions

@ -1,3 +1,8 @@
2001-03-06 Sven Wischnowsky <wischnow@zsh.org>
* 13575: Src/Zle/compmatch.c: another fix for completion matching,
CLF_MISS in the wrong cline struct
2001-03-06 Andrej Borsenkow <bor@zsh.org>
* 13544, 13568 (Peter): Completion/Core/_ignored,

@ -1923,7 +1923,10 @@ join_clines(Cline o, Cline n)
((tn->flags & CLF_NEW) || !cmp_anchors(o, tn, 0));
t = tn);
if (tn) {
int of = o->flags & CLF_MISS;
diff = sub_join(o, n, tn, 0);
o->flags = (o->flags & ~CLF_MISS) | of;
if (po && po->prefix && cmp_anchors(n, pn, 0)) {
po->flags |= CLF_MISS;
@ -2069,7 +2072,10 @@ join_clines(Cline o, Cline n)
cmp_anchors(tn, o, 1)) break;
if (tn) {
int of = o->flags & CLF_MISS;
if ((diff = sub_join(o, n, tn, 0))) {
o->flags = (o->flags & ~CLF_MISS) | of;
if (po) {
po->flags |= CLF_MISS;
po->max += diff;