From 4f80c3fedf8c45e07b70d069b0f59b36b8278be5 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 4 May 2000 08:43:30 +0000 Subject: save and restore `len' in lexsave/restore (11142) --- ChangeLog | 2 ++ Src/lex.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9896bf9fb..5532b0fb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2000-05-04 Sven Wischnowsky + * 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 diff --git a/Src/lex.c b/Src/lex.c index ccd04b2d9..6ba6b49b0 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -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; -- cgit v1.2.3