diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-06-26 09:05:10 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-06-26 09:05:10 +0000 |
commit | e067118efc45036e2c23d0287acfd0ef463e6fbb (patch) | |
tree | d4a2351d21ccbbb4c5206faca16c6293b5c1d295 /Src | |
parent | 2ca99605ed91b98eb100ebba5073cabff1ff9446 (diff) | |
download | zsh-e067118efc45036e2c23d0287acfd0ef463e6fbb.tar.gz zsh-e067118efc45036e2c23d0287acfd0ef463e6fbb.tar.xz zsh-e067118efc45036e2c23d0287acfd0ef463e6fbb.zip |
fix for finding the first ambiguous path component in compfiles (3946)
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/computil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 9937e8215..870bbcce8 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -3719,6 +3719,8 @@ cf_remove_other(char **names, char *pre, int *amb) if ((q = strchr((p = dupstring(p)), '/'))) *q = '\0'; + p = dyncat(p, "/"); + for (; *names; names++) if (!strpfx(p, *names)) { *amb = 1; |