zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Re: _setopt broken
@ 2000-04-27  9:03 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-04-27  9:03 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-27  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-27  9:03 PATCH: Re: _setopt broken Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).