about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/complete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index 25a33b9cb..7a15eb077 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -221,7 +221,7 @@ parse_cmatcher(char *name, char *s)
 	    if (err)
 		return pcm_err;
 
-	    if ((both = (*s == '|')))
+	    if ((both = (*s && s[1] == '|')))
 		s++;
 
 	    if (!*s || !*++s) {