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

RE: dev-15: accept-and-menu-complete and suffix in braces



Andrej Borsenkow wrote:

> > Yes, we had. And I don't get the behaviour you describe (neither for
> > in-brace-completion nor anywhere else)... any funny option/style settings?
> >
> 
> itsrm2% compstyle '*:paths' cursor 'yes'

When inside a word it can't auto-remove the suffix and with
compstate[to_end]='' it didn't check if it was at the end...

Bye
 Sven

diff -ru ../z.old/Src/Zle/compresult.c Src/Zle/compresult.c
--- ../z.old/Src/Zle/compresult.c	Thu Jan 27 17:06:56 2000
+++ Src/Zle/compresult.c	Thu Jan 27 17:14:59 2000
@@ -719,7 +719,8 @@
 	/* We are currently not in a menu-completion, *
 	 * so set the position variables.             */
 	minfo.pos = wb;
-	minfo.we = (movetoend >= 2 || (movetoend == 1 && !menucmp));
+	minfo.we = (movetoend >= 2 || (movetoend == 1 && !menucmp) ||
+		    (!movetoend && cs == we));
 	minfo.end = we;
     }
     /* If we are already in a menu-completion or if we have done a *

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author