1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-20 11:10:25 +02:00

(only the patch to compmatch.c from the mail); improve merging cline lists coming from different IPREFIX/PREFIX combinations and such by avoiding to generate cline structs for empty parts after a match spec anchor cline struct (15123)

This commit is contained in:
Sven Wischnowsky 2001-06-27 13:18:38 +00:00
parent b275190ff4
commit 51503a87a2
2 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,11 @@
2001-06-27 Sven Wischnowsky <wischnow@zsh.org>
* 15123: Src/Zle/compmatch.c: (only the patch to compmatch.c
from the mail); improve merging cline lists coming from
different IPREFIX/PREFIX combinations and such by avoiding to
generate cline structs for empty parts after a match spec
anchor cline struct
* 15115: Doc/Zsh/builtins.yo, Doc/Zsh/options.yo, Src/exec.c,
Src/jobs.c, Src/options.c, Src/zsh.h: add autocontinue option
to automatically make stopped jos running when they are being

View File

@ -1178,14 +1178,18 @@ bld_parts(char *str, int len, int plen, Cline *lp)
}
/* This is the cline struct for the remaining string at the end. */
*q = n = get_cline(NULL, 0, NULL, 0, NULL, 0, (plen <= 0 ? CLF_NEW : 0));
if (p != str) {
int olen = str - p, llen = (op < 0 ? 0 : op);
*q = n = get_cline(NULL, 0, NULL, 0, NULL, 0, (plen <= 0 ? CLF_NEW : 0));
if (llen > olen)
llen = olen;
n->prefix = get_cline(NULL, llen, p, olen, NULL, 0, 0);
}
else if (!ret)
*q = n = get_cline(NULL, 0, NULL, 0, NULL, 0, (plen <= 0 ? CLF_NEW : 0));
n->next = NULL;
if (lp)