1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

avoid printing file type characters in completion lists for matches ending in a slash (13071)

This commit is contained in:
Sven Wischnowsky 2000-10-24 07:50:24 +00:00
parent 865f3961b7
commit ead3cee30d
3 changed files with 11 additions and 3 deletions

@ -1,3 +1,9 @@
2000-10-24 Sven Wischnowsky <wischnow@zsh.org>
* 13071: Src/Zle/complist.c, Src/Zle/compresult.c: avoid printing
file type characters in completion lists for matches ending in a
slash
2000-10-23 Sven Wischnowsky <wischnow@zsh.org>
* 13037: Completion/Core/_path_files, Doc/Zsh/compsys.yo: change

@ -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);

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