about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-02 21:59:28 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-02 21:59:28 +0000
commit771c42fdb140e87a9bc95b4051152c24934fb45c (patch)
treee7602f9f9d9a8ba707a2c35e0d9ee5829dd3832a
parent6532fa34bae3fc767cc66af8489038fde3e3b0da (diff)
downloadzsh-771c42fdb140e87a9bc95b4051152c24934fb45c.tar.gz
zsh-771c42fdb140e87a9bc95b4051152c24934fb45c.tar.xz
zsh-771c42fdb140e87a9bc95b4051152c24934fb45c.zip
zsh-workers/8495
-rw-r--r--Src/Zle/compcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index ceee468b0..b37855fd0 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -1887,7 +1887,7 @@ add_match_data(int alt, char *str, Cline line,
 		p = bld_parts(ppre, ppl, ppl, &lp);
 
 	    if (lp->prefix && !(line->flags & (CLF_SUF | CLF_MID)) &&
-		!p->llen && !p->wlen && !p->olen) {
+		!lp->llen && !lp->wlen && !lp->olen) {
 		Cline lpp;
 
 		for (lpp = lp->prefix; lpp->next; lpp = lpp->next);
@@ -1952,7 +1952,7 @@ add_match_data(int alt, char *str, Cline line,
 	    for (p = lp = cp_cline(pline, 1); lp->next; lp = lp->next);
 
 	if (lp->prefix && !(line->flags & (CLF_SUF | CLF_MID)) &&
-	    !p->llen && !p->wlen && !p->olen) {
+	    !lp->llen && !lp->wlen && !lp->olen) {
 	    Cline lpp;
 
 	    for (lpp = lp->prefix; lpp->next; lpp = lpp->next);