From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1370 invoked from network); 28 Apr 2000 12:41:03 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Apr 2000 12:41:03 -0000 Received: (qmail 16016 invoked by alias); 28 Apr 2000 12:40:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11007 Received: (qmail 16005 invoked from network); 28 Apr 2000 12:40:50 -0000 Date: Fri, 28 Apr 2000 14:40:30 +0200 (MET DST) Message-Id: <200004281240.OAA22300@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk Subject: 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@informatik.hu-berlin.de