diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-24 07:50:24 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-24 07:50:24 +0000 |
commit | ead3cee30d59283b315e9b16b136ed5dd1198340 (patch) | |
tree | ab747c37770c25256130c598cefcc061883c2fca /Src/Zle/compresult.c | |
parent | 865f3961b7a84613a2537eabb77dc98378840167 (diff) | |
download | zsh-ead3cee30d59283b315e9b16b136ed5dd1198340.tar.gz zsh-ead3cee30d59283b315e9b16b136ed5dd1198340.tar.xz zsh-ead3cee30d59283b315e9b16b136ed5dd1198340.zip |
avoid printing file type characters in completion lists for matches ending in a slash (13071)
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r-- | Src/Zle/compresult.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index cce06d1e3..13ae8c3b3 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1886,7 +1886,8 @@ printlist(int over, CLPrintFunc printm, int showall) printm(g, NULL, mc, ml, (!i), wid, NULL, NULL); break; } - if (!m->disp && (m->flags & CMF_FILE)) { + if (!m->disp && (m->flags & CMF_FILE) && + m->str[0] && m->str[strlen(m->str) - 1] != '/') { struct stat buf; char *pb; |