Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: 0 <= wb <= cs <= we is not true!
- X-seq: zsh-workers 10621
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: BUG: 0 <= wb <= cs <= we is not true!
- Date: Mon, 10 Apr 2000 11:27:34 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 09 Apr 2000 23:25:46 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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