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

PATCH: fix 2, was Re: unpatch: metafying zle line



Remove two problems with character arrays with ZLE_UNICODE_SUPPORT by
transferring a "*" from one file to another.  Very economical.

Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.70
diff -u -r1.70 complist.c
--- Src/Zle/complist.c	10 Aug 2005 11:59:29 -0000	1.70
+++ Src/Zle/complist.c	10 Aug 2005 13:15:52 -0000
@@ -1865,7 +1865,7 @@
 {
 #ifdef ZLE_UNICODE_SUPPORT
     /* MB_CUR_MAX may not be constant */
-    VARARR(char *, s, MB_CUR_MAX+1);
+    VARARR(char, s, MB_CUR_MAX+1);
 #else
     char s[2];
 #endif
Index: Src/Zle/zle_refresh.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_refresh.c,v
retrieving revision 1.24
diff -u -r1.24 zle_refresh.c
--- Src/Zle/zle_refresh.c	10 Aug 2005 10:56:41 -0000	1.24
+++ Src/Zle/zle_refresh.c	10 Aug 2005 13:15:52 -0000
@@ -1207,7 +1207,7 @@
 #ifdef ZLE_UNICODE_SUPPORT
     ZLE_STRING_T lpwbuf, lpwp;	/* converted lprompt and pointer */
     char *lpptr,		/* pointer into multibyte lprompt */
-	lpend;			/* end of multibyte lprompt */
+	*lpend;			/* end of multibyte lprompt */
     mbstate_t ps;		/* shift state */
 #endif
 
-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



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