Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: If someone wants to try...
- X-seq: zsh-workers 9370
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: If someone wants to try...
- Date: Wed, 19 Jan 2000 16:46:18 +0100 (MET)
- In-reply-to: Alexandre Duret-Lutz's message of 19 Jan 2000 12:05:09 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Alexandre Duret-Lutz wrote:
> With the three patches applied I can reproduce the following segfault.
> The idea is to make a completion (here on filenames, after cat)
> just before completing for $functions (it look like it will
> hang only when completing the varname `$functions').
Missing initialisation for a tstack field in two places.
And maybe we should try to avoid building values for arrays and hashes
when completing their names (it's autoparamslash if I'm not completely
mistaken). No patch for this yet.
Bye
Sven
--- ../z.old/Src/text.c Wed Jan 19 10:07:27 2000
+++ Src/text.c Wed Jan 19 16:43:51 2000
@@ -615,7 +615,8 @@
}
break;
case COND_AND:
- tpush(code, 1);
+ n = tpush(code, 1);
+ n->u._cond.par = 0;
code = *state->pc++;
if (WC_COND_TYPE(code) == COND_OR) {
taddstr("( ");
@@ -624,7 +625,8 @@
}
break;
case COND_OR:
- tpush(code, 1);
+ n = tpush(code, 1);
+ n->u._cond.par = 0;
code = *state->pc++;
if (WC_COND_TYPE(code) == COND_AND) {
taddstr("( ");
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author