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

Re: PATCH: (large) initial support for combining characters in ZLE.



"Mikael Magnusson" wrote:
> zsh -f
> print -z $'a\u0342'
> <alt-x>push-input
> setopt combiningchars
> boom

I can get something untoward to happen if I move the cursor on top of
the combining tilde first, if that's what you mean.

Index: Src/Zle/zle_main.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_main.c,v
retrieving revision 1.116
diff -u -r1.116 zle_main.c
--- Src/Zle/zle_main.c	16 Sep 2008 15:12:17 -0000	1.116
+++ Src/Zle/zle_main.c	22 Sep 2008 18:33:21 -0000
@@ -1173,6 +1173,7 @@
 	    stackcs = -1;
 	    if (zlecs > zlell)
 		zlecs = zlell;
+	    CCLEFT();
 	}
 	if (stackhist != -1) {
 	    histline = stackhist;


-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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