diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 5 | ||||
-rw-r--r-- | Src/Zle/compresult.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 2334a2612..af8dea6f0 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1241,7 +1241,8 @@ compprintlist(int showall) goto end; 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; @@ -1467,7 +1468,7 @@ clprintm(Cmgroup g, Cmatch *mp, int mc, int ml, int lastc, int width, len = niceztrlen(m->disp ? m->disp : m->str); mlprinted = len / columns; - if (isset(LISTTYPES) && buf) { + if (isset(LISTTYPES) && buf) { if (m->gnum != mselect) { zcoff(); zcputs(&mcolors, g->name, COL_TC); 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; |