mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-03 08:11:03 +02:00
save and restore `len' in lexsave/restore (11142)
This commit is contained in:
parent
4414e16a6a
commit
4f80c3fedf
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
2000-05-04 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
2000-05-04 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||||
|
|
||||||
|
* 11142: Src/lex.c: save and restore `len' in lexsave/restore
|
||||||
|
|
||||||
* 11140: Completion/Builtins/_zstyle, Completion/Core/_main_complete,
|
* 11140: Completion/Builtins/_zstyle, Completion/Core/_main_complete,
|
||||||
Doc/Zsh/compsys.yo, Src/Zle/compcore.c, Src/Zle/compctl.c: don't
|
Doc/Zsh/compsys.yo, Src/Zle/compcore.c, Src/Zle/compctl.c: don't
|
||||||
list when all matches look the same; force-list style to give
|
list when all matches look the same; force-list style to give
|
||||||
|
|
|
@ -178,6 +178,7 @@ struct lexstack {
|
||||||
char *yytext;
|
char *yytext;
|
||||||
char *bptr;
|
char *bptr;
|
||||||
int bsiz;
|
int bsiz;
|
||||||
|
int len;
|
||||||
short *chwords;
|
short *chwords;
|
||||||
int chwordlen;
|
int chwordlen;
|
||||||
int chwordpos;
|
int chwordpos;
|
||||||
|
@ -236,6 +237,7 @@ lexsave(void)
|
||||||
ls->yytext = yytext;
|
ls->yytext = yytext;
|
||||||
ls->bptr = bptr;
|
ls->bptr = bptr;
|
||||||
ls->bsiz = bsiz;
|
ls->bsiz = bsiz;
|
||||||
|
ls->len = len;
|
||||||
ls->chwords = chwords;
|
ls->chwords = chwords;
|
||||||
ls->chwordlen = chwordlen;
|
ls->chwordlen = chwordlen;
|
||||||
ls->chwordpos = chwordpos;
|
ls->chwordpos = chwordpos;
|
||||||
|
@ -296,6 +298,7 @@ lexrestore(void)
|
||||||
yytext = lstack->yytext;
|
yytext = lstack->yytext;
|
||||||
bptr = lstack->bptr;
|
bptr = lstack->bptr;
|
||||||
bsiz = lstack->bsiz;
|
bsiz = lstack->bsiz;
|
||||||
|
len = lstack->len;
|
||||||
chwords = lstack->chwords;
|
chwords = lstack->chwords;
|
||||||
chwordlen = lstack->chwordlen;
|
chwordlen = lstack->chwordlen;
|
||||||
chwordpos = lstack->chwordpos;
|
chwordpos = lstack->chwordpos;
|
||||||
|
|
Loading…
Reference in a new issue