about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2004-11-05 16:19:19 +0000
committerBart Schaefer <barts@users.sourceforge.net>2004-11-05 16:19:19 +0000
commit33686bdc984f42fbf17edd3648de150beb2d2c88 (patch)
tree4a559292e0539c127cc261fdb1ae9fd2b02738db /Src
parent07d95ba04c599775fa671df39ff02e50107a373f (diff)
downloadzsh-33686bdc984f42fbf17edd3648de150beb2d2c88.tar.gz
zsh-33686bdc984f42fbf17edd3648de150beb2d2c88.tar.xz
zsh-33686bdc984f42fbf17edd3648de150beb2d2c88.zip
fix "compadd -k assoc1 assoc2"
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compcore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index cf821197b..8fd224bd9 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -2082,7 +2082,7 @@ addmatches(Cadata dat, char **argv)
 		    compignored++;
 		    if (dparr && !*++dparr)
 			dparr = NULL;
-		    continue;
+		    goto next_array;
 		}
 	    }
 	    if (!(dat->aflags & CAF_MATCH)) {
@@ -2100,7 +2100,7 @@ addmatches(Cadata dat, char **argv)
 					 &isexact))) {
 		if (dparr && !*++dparr)
 		    dparr = NULL;
-		continue;
+		goto next_array;
 	    }
 	    if (doadd) {
 		Brinfo bp;
@@ -2132,6 +2132,7 @@ addmatches(Cadata dat, char **argv)
 		}
 		free_cline(lc);
 	    }
+	next_array:
 	    if ((dat->aflags & CAF_ARRAYS) && !argv[1]) {
 		Heap oldheap2;