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

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