diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/computil.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index b37e7d4fa..66292a4ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-06-26 Sven Wischnowsky <wischnow@zsh.org> + + * user/3946: Src/Zle/computil.c: fix for finding the first + ambiguous path component in compfiles + 2001-06-25 Peter Stephenson <pws@csr.com> * unposted: Config/version.mk: version zsh-4.0.2. 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; |