Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: dev-15: accept-and-menu-complete and suffix in braces
- X-seq: zsh-workers 9442
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: RE: dev-15: accept-and-menu-complete and suffix in braces
- Date: Thu, 27 Jan 2000 17:16:24 +0100 (MET)
- In-reply-to: "Andrej Borsenkow"'s message of Thu, 27 Jan 2000 18:49:59 +0300
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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