Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion heuristics (was Re: bug in _rpm?)
- X-seq: zsh-workers 7960
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Completion heuristics (was Re: bug in _rpm?)
- Date: Mon, 20 Sep 1999 16:22:17 +0200 (MET DST)
- In-reply-to: Sven Wischnowsky's message of Mon, 20 Sep 1999 11:37:38 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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<TAB>' 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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author