diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2005-08-16 21:49:33 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2005-08-16 21:49:33 +0000 |
commit | 9d6048811c935ebbd1bb1116531a4285a56c3467 (patch) | |
tree | e2df5a24430b28baa7961ccdc0ee6039bce36606 /Src/Zle/complete.c | |
parent | 11b0963bdcbd5fe8371322612099c9d079460782 (diff) | |
download | zsh-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/Zle/complete.c')
-rw-r--r-- | Src/Zle/complete.c | 4 |
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 (;;) { |