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