From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2257 invoked from network); 20 Sep 1999 14:22:47 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Sep 1999 14:22:47 -0000 Received: (qmail 23373 invoked by alias); 20 Sep 1999 14:22:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7960 Received: (qmail 23365 invoked from network); 20 Sep 1999 14:22:32 -0000 Date: Mon, 20 Sep 1999 16:22:17 +0200 (MET DST) Message-Id: <199909201422.QAA12358@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Sven Wischnowsky's message of Mon, 20 Sep 1999 11:37:38 +0200 (MET DST) Subject: Re: Completion heuristics (was Re: bug in _rpm?) I wrote: > Ok. Here is my first attempt at trying to avoid inserting unambiguous > stuff that is only irritating. When trying 7959, I stumbled over a buglet: `S/z' offered `Src' and `StartupFiles' but removed the `/z' because the test for word parts with matching stuff on the line in cut_cline() wasn't fully correct. Sorry. Bye Sven diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c --- os/Zle/zle_tricky.c Mon Sep 20 16:03:48 1999 +++ Src/Zle/zle_tricky.c Mon Sep 20 16:18:35 1999 @@ -7612,7 +7612,7 @@ * the line. Anything before that is kept. */ for (p = l; p; p = p->next) - if (p->orig || p->olen) + if (p->orig || p->olen || !(p->flags & CLF_NEW)) e = p->next; /* Then keep all structs without missing characters. */ -- Sven Wischnowsky wischnow@informatik.hu-berlin.de