Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion problems.



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