1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

39725: more metafication of patterns.

This commit is contained in:
Barton E. Schaefer 2016-10-25 12:45:51 -07:00
parent 39ae9cd10a
commit 364c4047e7
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2016-10-25 Barton E. Schaefer <schaefer@zsh.org>
* 39725: Src/Zle/complist.c: more metafication of patterns.
2016-10-25 Peter Stephenson <p.stephenson@samsung.com>
* 39723: Src/Zle/complist.c, Src/glob.c: metafy string to be

View file

@ -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;