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

Re: BUG: 0 <= wb <= cs <= we is not true!



Tanaka Akira wrote:

> I found that <TAB> on ; may tickle a bug.
> 
> Z(5):akr@serein% zsh -f
> serein% bindkey -e; autoload -U compinit; compinit -D
> serein% echo ;:<C-b><C-b><TAB>
> 
> prints
> 
> BUG: 0 <= wb <= cs <= we is not true!

Hm, addx() didn't insert the x in this case.

Bye
 Sven

Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.2
diff -u -r1.2 zle_tricky.c
--- Src/Zle/zle_tricky.c	2000/04/10 08:06:39	1.2
+++ Src/Zle/zle_tricky.c	2000/04/10 09:26:58
@@ -790,7 +790,8 @@
 
     if (!line[cs] || line[cs] == '\n' ||
 	(iblank(line[cs]) && (!cs || line[cs-1] != '\\')) ||
-	line[cs] == ')' || line[cs] == '`' ||
+	line[cs] == ')' || line[cs] == '`' || line[cs] == '}' ||
+	line[cs] == ';' || line[cs] == '|' || line[cs] == '&' ||
 	(instring && (line[cs] == '"' || line[cs] == '\'')) ||
 	(addspace = (comppref && !iblank(line[cs])))) {
 	*ptmp = (char *)line;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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