Fix symlink to dir indicator in detail mode

This commit is contained in:
Arun Prakash Jana 2020-04-13 20:42:19 +05:30
parent 35c3497364
commit c58434d078
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 1 deletions

View File

@ -3305,7 +3305,8 @@ static void printent_long(const struct entry *ent, uint namecols, bool sel)
break;
case S_IFLNK:
ln = TRUE;
ind1 = ind2 = '@'; // fallthrough
ind1 = '@';
ind2 = (ent->flags & DIR_OR_LINK_TO_DIR) ? '/' : '@'; // fallthrough
case S_IFSOCK:
if (!ind1)
ind1 = ind2 = '='; // fallthrough