Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: _setopt broken
- X-seq: zsh-workers 10963
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: _setopt broken
- Date: Thu, 27 Apr 2000 11:03:09 +0200 (MET DST)
- In-reply-to: Adam Spiers's message of Wed, 26 Apr 2000 18:14:02 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Adam Spiers wrote:
> $ setopt <TAB>
> _all_labels:compadd:39: need non-empty word or line pattern
>
> Is this another of my `weird options' bugs?
Ouch, parse error for left-anchored patterns.
Bye
Sven
Index: Src/Zle/complete.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complete.c,v
retrieving revision 1.5
diff -u -r1.5 complete.c
--- Src/Zle/complete.c 2000/04/27 08:21:10 1.5
+++ Src/Zle/complete.c 2000/04/27 09:02:21
@@ -221,7 +221,7 @@
if (err)
return pcm_err;
- if ((both = (*s == '|')))
+ if ((both = (*s && s[1] == '|')))
s++;
if (!*s || !*++s) {
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author