summaryrefslogtreecommitdiff
blob: c75b28048542f091b13a552f3f42a60755b106d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Src/Zle/compmatch.c.orig	2004-01-15 18:37:39.000000000 -0600
+++ Src/Zle/compmatch.c	2004-01-15 18:38:45.000000000 -0600
@@ -341,7 +341,7 @@
 
     /* If the anchors are equal, we keep only one. */
 
-    if (!strncmp(l, w, wl))
+    if (wl == 0 || !strncmp(l, w, wl))
 	l = NULL;
 
     /* Split the new part into parts and turn the last one into a