From c8f2e51007b7e3fd4bf581ca92b4ff13e7aae8ed Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 6 Mar 2001 11:31:20 +0000 Subject: another fix for completion matching, CLF_MISS in the wrong cline struct (13575) --- Src/Zle/compmatch.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src') diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index 45220a298..e9c6721ba 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -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; -- cgit 1.4.1