Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion problems.
- X-seq: zsh-workers 7353
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Completion problems.
- Date: Wed, 4 Aug 1999 09:36:14 +0200 (MET DST)
- In-reply-to: Sven Wischnowsky's message of Mon, 2 Aug 1999 12:58:55 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I wrote:
> The problem was that cond_str() always returned an
> untokenized string. The patch gives a new argument to it which may be
> non-zero to get the tokenized form.
I forgot to include the diff for Modules/example.c. Sorry.
Bye
Sven
diff -u os/Modules/example.c Src/Modules/example.c
--- os/Modules/example.c Tue Aug 3 08:57:51 1999
+++ Src/Modules/example.c Tue Aug 3 08:58:21 1999
@@ -80,7 +80,7 @@
static int
cond_p_len(char **a, int id)
{
- char *s1 = cond_str(a, 0);
+ char *s1 = cond_str(a, 0, 0);
if (a[1]) {
zlong v = cond_val(a, 1);
@@ -95,7 +95,7 @@
static int
cond_i_ex(char **a, int id)
{
- char *s1 = cond_str(a, 0), *s2 = cond_str(a, 1);
+ char *s1 = cond_str(a, 0, 0), *s2 = cond_str(a, 1, 0);
return !strcmp("example", dyncat(s1, s2));
}
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author