diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/parse.c | 18 |
2 files changed, 17 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog index 68e9da60a..819021237 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2000-06-14 Sven Wischnowsky <wischnow@zsh.org> - * 11885: Src/Zle/complist.c: better fix for menu selection on dumb + * ?????: Src/parse.c: nix kaboom with `time time' + + * ?????: Src/Zle/complist.c: better fix for menu selection on dumb terminal 2000-06-13 Clint Adams <schizo@debian.org> diff --git a/Src/parse.c b/Src/parse.c index 5e90984ac..4f79b2e4b 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -799,10 +799,6 @@ par_cmd(int *complex) par_funcdef(); cmdpop(); break; - case TIME: - *complex = 1; - par_time(); - break; case DINBRACK: cmdpush(CS_COND); par_dinbrack(); @@ -813,6 +809,20 @@ par_cmd(int *complex) ecstr(tokstr); yylex(); break; + case TIME: + { + static int inpartime = 0; + + if (!inpartime) { + *complex = 1; + inpartime = 1; + par_time(); + inpartime = 0; + break; + } + } + tok = STRING; + /* fall through */ default: { int sr; |