From b5019ef4e540008b9438b3cf4f06daa5f04d5bcc Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 3 Apr 2000 12:14:52 +0000 Subject: Recognise new parts in partial word completion --- Src/Zle/compmatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle/compmatch.c') diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index 3dda28e11..0a377ddb0 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -351,7 +351,6 @@ add_match_part(Cmatcher m, char *l, char *w, int wl, p = bld_parts(s, sl, osl, &lp); - p->flags &= ~CLF_NEW; if (m && (m->flags & CMF_LEFT)) { lp->flags |= CLF_SUF; lp->suffix = lp->prefix; @@ -384,7 +383,8 @@ add_match_part(Cmatcher m, char *l, char *w, int wl, lp->line = l; lp->llen = wl; lp->word = w; lp->wlen = wl; lp->orig = o; lp->olen = ol; - lp->flags &= ~CLF_NEW; + if (o || ol) + lp->flags &= ~CLF_NEW; /* Finally, put the new parts on the list. */ if (matchlastpart) -- cgit 1.4.1