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

PATCH: math context completion



Here are some bugs I did find: completing in math context never
terminated.

Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.73
diff -u -r1.73 zle_tricky.c
--- Src/Zle/zle_tricky.c	11 Aug 2006 21:30:38 -0000	1.73
+++ Src/Zle/zle_tricky.c	20 Aug 2006 17:46:54 -0000
@@ -1444,6 +1444,7 @@
 		    wb = wptr - zlemetaline;
 		    break;
 		}
+		wptr = cptr;
 	    }
 	}
 	zsfree(s);
@@ -1464,6 +1465,7 @@
 		}
 		if (cptr >= sqbr)
 		    break;
+		wptr = cptr;
 	    }
 
 	    if (wptr < sqbr) {

-- 
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