From a767556e6370f582729c850ecc18506efdff9e1a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 2 Nov 1999 12:02:00 +0000 Subject: zsh-workers/8481 --- Src/Zle/compcore.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index ea9ff5b20..353084fd6 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -800,15 +800,14 @@ makecomplist(char *s, int incmd, int lst) int n; for (n = 0; m; m = m->next, n++) { - if (m->matcher) { - *mp = (Cmlist) zhalloc(sizeof(struct cmlist)); - (*mp)->matcher = m->matcher; - (*mp)->next = NULL; - (*mp)->str = dupstring(m->str); - mp = &((*mp)->next); - addlinknode(matchers, m->matcher); + *mp = (Cmlist) zhalloc(sizeof(struct cmlist)); + (*mp)->matcher = m->matcher; + (*mp)->next = NULL; + (*mp)->str = dupstring(m->str); + mp = &((*mp)->next); + addlinknode(matchers, m->matcher); + if (m->matcher) m->matcher->refc++; - } } m = mm; compmatcher = 1; -- cgit 1.4.1