diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-28 20:31:51 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-28 20:31:51 +0100 |
commit | f9d7651c2554bb5db0373f63185ff358f795ab3c (patch) | |
tree | 0fa56b15a92ad8b2f1cb69140bcce4f969780b03 /Src/Zle | |
parent | a5cb918d4018bbd5cdc8751e5c9f4f55f0a211be (diff) | |
download | zsh-f9d7651c2554bb5db0373f63185ff358f795ab3c.tar.gz zsh-f9d7651c2554bb5db0373f63185ff358f795ab3c.tar.xz zsh-f9d7651c2554bb5db0373f63185ff358f795ab3c.zip |
36682: expand pattern interface to optimise unmetafication
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 5 | ||||
-rw-r--r-- | Src/Zle/zle_hist.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 433701514..986ad31ea 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -868,7 +868,7 @@ putmatchcol(char *group, char *n) nrefs = MAX_POS - 1; if ((!pc->prog || !group || pattry(pc->prog, group)) && - pattryrefs(pc->pat, n, -1, -1, 0, &nrefs, begpos, endpos)) { + pattryrefs(pc->pat, n, -1, -1, NULL, 0, &nrefs, begpos, endpos)) { if (pc->cols[1]) { patcols = pc->cols; @@ -900,7 +900,8 @@ putfilecol(char *group, char *filename, mode_t m, int special) nrefs = MAX_POS - 1; if ((!pc->prog || !group || pattry(pc->prog, group)) && - pattryrefs(pc->pat, filename, -1, -1, 0, &nrefs, begpos, endpos)) { + pattryrefs(pc->pat, filename, -1, -1, NULL, + 0, &nrefs, begpos, endpos)) { if (pc->cols[1]) { patcols = pc->cols; diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 0cff0391a..95d96c95c 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -1306,8 +1306,8 @@ doisearch(char **args, int dir, int pattern) * this mode. */ if (!skip_pos && - pattryrefs(patprog, zt, -1, -1, 0, NULL, NULL, - &end_pos)) + pattryrefs(patprog, zt, -1, -1, NULL, 0, + NULL, NULL, &end_pos)) t = zt; } else { if (!matchlist && !skip_pos) { |