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

Re: Something very weird just happened



Bart Schaefer wrote:

> I ran `zed -f __find` where __find is from the new-completion-examples, and
> a lot of the '-' characters inside [[ ... ]] expressions got doubled.  I
> suspect somebody forgot to tweak a pretty-printing routine to handle the new
> condition codes?

Yes. Actually I changed text.c to print the new condition codes
correctly, then changed the way their names are stored and forgot to
change text.c for this.

Bye
 Sven

--- os/text.c	Thu Feb 11 08:38:46 1999
+++ Src/text.c	Thu Feb 11 08:38:58 1999
@@ -415,7 +415,6 @@
 	    /* Module defined prefix condition. */
 	    char **p = (char **) nm->right;
 
-	    taddstr("-");
 	    taddstr(nm->left);
 	    for (; *p; p++) {
 		taddstr(" ");
@@ -426,7 +425,7 @@
     case COND_MODI:
 	/* Module defined infix condition. */
 	taddstr(((char **) nm->right)[0]);
-	taddstr(" -");
+	taddstr(" ");
 	taddstr(nm->left);
 	taddstr(" ");
 	taddstr(((char **) nm->right)[1]);

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author