diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-04-24 00:38:07 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-04-24 00:38:07 +0000 |
commit | 5733e942f5a88f33aeb9fca8538e3ffe7e2b7407 (patch) | |
tree | a227bf39fed2ea66a08a61b9ccf4fba83a43f83a /Src/Zle | |
parent | b84b0f38b517de66be1883884601551ede422674 (diff) | |
download | zsh-5733e942f5a88f33aeb9fca8538e3ffe7e2b7407.tar.gz zsh-5733e942f5a88f33aeb9fca8538e3ffe7e2b7407.tar.xz zsh-5733e942f5a88f33aeb9fca8538e3ffe7e2b7407.zip |
Optimise length calculations for ${...//.../...}
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 51b160919..3a3d77971 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -601,7 +601,7 @@ putmatchcol(Listcols c, char *group, char *n) for (pc = c->pats; pc; pc = pc->next) if ((!pc->prog || !group || pattry(pc->prog, group)) && - pattryrefs(pc->pat, n, -1, 0, &nrefs, begpos, endpos)) { + pattryrefs(pc->pat, n, -1, -1, 0, &nrefs, begpos, endpos)) { if (pc->cols[1]) { patcols = pc->cols; @@ -639,7 +639,7 @@ putfilecol(Listcols c, char *group, char *n, mode_t m) for (pc = c->pats; pc; pc = pc->next) if ((!pc->prog || !group || pattry(pc->prog, group)) && - pattryrefs(pc->pat, n, -1, 0, &nrefs, begpos, endpos)) { + pattryrefs(pc->pat, n, -1, -1, 0, &nrefs, begpos, endpos)) { if (pc->cols[1]) { patcols = pc->cols; |