summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-10-25 12:45:51 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-10-25 12:45:51 -0700
commit364c4047e710b779167d697b956e224944cb0c84 (patch)
tree2436b1b470164dd320b8bc24fc609ac4b15083f7 /Src/Zle/complist.c
parent39ae9cd10a5987ac71dee8bef7bd3bc2ba5e4eb8 (diff)
downloadzsh-364c4047e710b779167d697b956e224944cb0c84.tar.gz
zsh-364c4047e710b779167d697b956e224944cb0c84.tar.xz
zsh-364c4047e710b779167d697b956e224944cb0c84.zip
39725: more metafication of patterns.
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index d4672a194..2edaf6eca 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -347,9 +347,10 @@ getcoldef(char *s)
 	    char sav = p[1];
 
 	    p[1] = '\0';
+	    s = metafy(s, -1, META_USEHEAP);
 	    tokenize(s);
 	    gprog = patcompile(s, 0, NULL);
-	    p[1]  =sav;
+	    p[1] = sav;
 
 	    s = p + 1;
 	}
@@ -415,7 +416,7 @@ getcoldef(char *s)
 		break;
 	    *s++ = '\0';
 	}
-	p = metafy(p, strlen(p), META_USEHEAP);
+	p = metafy(p, -1, META_USEHEAP);
 	tokenize(p);
 	if ((prog = patcompile(p, 0, NULL))) {
 	    Patcol pc, po;