Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: wrong cursor placement with matchers
- X-seq: zsh-workers 11248
 
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxxxxxxxxx
 
- Subject: PATCH: Re: wrong cursor placement with matchers
 
- Date: Mon, 8 May 2000 11:27:28 +0200 (MET DST)
 
- In-reply-to: "Andrej Borsenkow"'s message of Sat, 6 May 2000 15:09:58 +0400
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
 
Andrej Borsenkow wrote:
> bor@itsrm2% vi c.s<TAB>
> bor@itsrm2% vi c.s<CURSOR HERE>
> Completing file
> config.status*  cvs.spec
Well, `wrong' is probably the wrong word, since one *can* disambiguate 
between the matches at that position.
But you want the cursor on the dot, right? And I can agree that it
should be there... (bigger difference between `config' and `cvs' then
between `status' and `spec').
Bye
 Sven
P.S.: Thanks to Peter's NEWs file I saw that wischnow@xxxxxxx
      works. Cool. When did that happen?
Index: Src/Zle/compmatch.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compmatch.c,v
retrieving revision 1.10
diff -u -r1.10 compmatch.c
--- Src/Zle/compmatch.c	2000/04/28 12:42:25	1.10
+++ Src/Zle/compmatch.c	2000/05/08 09:26:53
@@ -211,9 +211,9 @@
 cline_setlens(Cline l, int both)
 {
     while (l) {
-	l->max = cline_sublen(l);
+	l->min = cline_sublen(l);
 	if (both)
-	    l->min = l->max;
+	    l->max = l->min;
 	l = l->next;
     }
 }
--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author