about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/complete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index 30173927d..ee4e5b0a5 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -267,11 +267,12 @@ parse_cmatcher(char *name, char *s)
 		s++;
 
 	    if (!*s || !*++s) {
-		if (name)
+		if (name) {
                    if (both)
                        zwarnnam(name, "missing right anchor");
                    else
                        zwarnnam(name, "missing line pattern");
+		}
 		return pcm_err;
 	    }
 	} else