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:
parent
39ae9cd10a
commit
364c4047e7
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue