about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-08-16 21:49:33 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-08-16 21:49:33 +0000
commit9d6048811c935ebbd1bb1116531a4285a56c3467 (patch)
treee2df5a24430b28baa7961ccdc0ee6039bce36606 /Src
parent11b0963bdcbd5fe8371322612099c9d079460782 (diff)
downloadzsh-9d6048811c935ebbd1bb1116531a4285a56c3467.tar.gz
zsh-9d6048811c935ebbd1bb1116531a4285a56c3467.tar.xz
zsh-9d6048811c935ebbd1bb1116531a4285a56c3467.zip
Fixed bug in do_comp_vars() when *compprefix is a metified char.
Diffstat (limited to 'Src')
-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 (;;) {