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

PATCH: Re: wrong cursor placement with matchers



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