Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 8512aae584abe93fcdf66a71cc5932df > files > 5

zsh-4.3.10-6.fc13.src.rpm

diff -pruN zsh-4.3.10.orig/Src/Zle/zle_refresh.c zsh-4.3.10/Src/Zle/zle_refresh.c
--- zsh-4.3.10.orig/Src/Zle/zle_refresh.c	2009-05-11 17:44:48.000000000 +0900
+++ zsh-4.3.10/Src/Zle/zle_refresh.c	2011-05-30 16:44:19.000000000 +0900
@@ -2317,7 +2317,7 @@ singlerefresh(ZLE_STRING_T tmpline, int 
 	if (tmpline[t0] == ZWC('\t'))
 	    vsiz = (vsiz | 7) + 2;
 #ifdef MULTIBYTE_SUPPORT
-	else if (iswprint(tmpline[t0]) && (width = WCWIDTH(tmpline[t0]) > 0)) {
+	else if (iswprint(tmpline[t0]) && ((width = WCWIDTH(tmpline[t0])) > 0)) {
 	    vsiz += width;
 	    if (isset(COMBININGCHARS) && IS_BASECHAR(tmpline[t0])) {
 		while (t0 < tmpll-1 && IS_COMBINING(tmpline[t0+1]))