1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00

fix for finding the first ambiguous path component in compfiles (3946)

This commit is contained in:
Sven Wischnowsky 2001-06-26 09:05:10 +00:00
parent 2ca99605ed
commit e067118efc
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +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
* 15087: Src/jobs.c: make warning message for disowning stopped
jobs more verbose (saying how to make the job running again)

View file

@ -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;