mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 15:02:18 +01: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:
parent
b275190ff4
commit
51503a87a2
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue