From e067118efc45036e2c23d0287acfd0ef463e6fbb Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 26 Jun 2001 09:05:10 +0000 Subject: fix for finding the first ambiguous path component in compfiles (3946) --- ChangeLog | 3 +++ Src/Zle/computil.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7895a7f9b..19abe4d5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-06-26 Sven Wischnowsky + * user/3946: Src/Zle/computil.c: fix for finding the first + ambiguous path component in compfiles + * 15087: Src/jobs.c: make warning message for disowning stopped jobs more verbose (saying how to make the job running again) 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; -- cgit 1.4.1