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

PATCH: yet another match-spec-cursor bug



With partial word matching and matches like `c6.yo' and `c6.yo.old',
the cursor was left on the dot. Caused by a thinko in the code that
marks the cline structs to say in which of them characters were
missing.


Bye
 Sven

Index: Src/Zle/compmatch.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compmatch.c,v
retrieving revision 1.9
diff -u -r1.9 compmatch.c
--- Src/Zle/compmatch.c	2000/04/26 06:54:27	1.9
+++ Src/Zle/compmatch.c	2000/04/28 12:38:55
@@ -1917,14 +1917,8 @@
 
 		if (tn) {
 		    diff = sub_join(o, n, tn, 0);
-
-		    if (po && po->prefix && cmp_anchors(n, pn, 0)) {
-			po->flags |= CLF_MISS;
-			po->max += diff;
-		    } else {
-			o->flags |= CLF_MISS;
-			o->max += diff;
-		    }
+		    o->flags |= CLF_MISS;
+		    o->max += diff;
 		    n = tn;
 		    po = o;
 		    o = o->next;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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