zsh-workers
 help / color / mirror / code / Atom feed
* zsh-4.3.9 compilation fails with multibyte disabled
@ 2009-11-04 13:08 Thomas Köhler
  2009-11-04 14:18 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Köhler @ 2009-11-04 13:08 UTC (permalink / raw)
  To: zsh workers

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

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@picard.franken.de
     <><             WWW:              http://gott-gehabt.de
                     IRC:                           tkoehler
                     PGP public key available from Homepage!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-04 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04 13:08 zsh-4.3.9 compilation fails with multibyte disabled Thomas Köhler
2009-11-04 14:18 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).