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

zsh-4.3.9 compilation fails with multibyte disabled



Hello all,
the compiler complains because the int now_off is not declared at
the beginning of a block. As I don't know if someone else already
discovered this, here's a patch. Just ignore if it is already
fixed :-)

~/zsh/zsh-4.3.9> diff -u Src/Zle/zle_refresh.c.ORG Src/Zle/zle_refresh.c
--- Src/Zle/zle_refresh.c.ORG   Wed Nov  4 13:54:32 2009
+++ Src/Zle/zle_refresh.c       Wed Nov  4 14:02:01 2009
@@ -2044,8 +2044,9 @@
 	 */
 	if (!nl->chr)
 	    break;
-	do {
+	do
 #endif
+	{
 	    /*
 	     * If an attribute was on here but isn't any more,
 	     * output the sequence to turn it off.
@@ -2057,12 +2058,13 @@
 	    zputc(nl);
 	    nl++, ol++;
 	    ccs++, vcs++;
+	}
 #ifdef MULTIBYTE_SUPPORT
 	    /*
 	     * Make sure we always overwrite the complete width of
 	     * a character that was there before.
 	     */
-	} while ((ol->chr == WEOF && nl->chr) ||
+	while ((ol->chr == WEOF && nl->chr) ||
 		  (nl->chr == WEOF && ol->chr));
 #endif
     }
~/zsh/zsh-4.3.9> 

Bye,
Thomas

-- 
 Thomas Köhler       Email:       jean-luc@xxxxxxxxxxxxxxxxx
     <><             WWW:              http://gott-gehabt.de
                     IRC:                           tkoehler
                     PGP public key available from Homepage!

Attachment: signature.asc
Description: Digital signature



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