With dimming, @ is not required for symlink to dir

This commit is contained in:
Arun Prakash Jana 2020-04-05 06:30:28 +05:30
parent 02c02c520d
commit 0c966b2178
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -3260,6 +3260,8 @@ static void printent(const struct entry *ent, uint namecols, bool sel)
{
char ind = get_ind(ent->mode, FALSE);
int attrs = ((ind == '@' || (ent->flags & HARD_LINK)) ? A_DIM : 0) | (sel ? A_REVERSE : 0);
if (ind == '@' && (ent->flags & DIR_OR_LINK_TO_DIR))
ind = '/';
if (!ind)
++namecols;