about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/computil.c2
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;