1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-02-24 11:51:19 +01:00

save and restore `len' in lexsave/restore (11142)

This commit is contained in:
Sven Wischnowsky 2000-05-04 08:43:30 +00:00
parent 4414e16a6a
commit 4f80c3fedf
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,7 @@
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,
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

View file

@ -178,6 +178,7 @@ struct lexstack {
char *yytext;
char *bptr;
int bsiz;
int len;
short *chwords;
int chwordlen;
int chwordpos;
@ -236,6 +237,7 @@ lexsave(void)
ls->yytext = yytext;
ls->bptr = bptr;
ls->bsiz = bsiz;
ls->len = len;
ls->chwords = chwords;
ls->chwordlen = chwordlen;
ls->chwordpos = chwordpos;
@ -296,6 +298,7 @@ lexrestore(void)
yytext = lstack->yytext;
bptr = lstack->bptr;
bsiz = lstack->bsiz;
len = lstack->len;
chwords = lstack->chwords;
chwordlen = lstack->chwordlen;
chwordpos = lstack->chwordpos;