about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/Zle/complete.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index d1f3366e7..b8db18b1f 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -820,9 +820,7 @@ do_comp_vars(int test, int na, char *sa, int nb, char *sb, int mod)
 		    na = -na;
 		    add = -1;
 		} else {
-		    p = compprefix + 1;
-		    if (*p == Meta)
-			p++;
+		    p = compprefix + 1 + (*compprefix == Meta);
 		    add = 1;
 		}
 		for (;;) {