Browse Source

With dimming, @ is not required for symlink to dir

master
Arun Prakash Jana 4 years ago
parent
commit
0c966b2178
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/nnn.c

+ 2
- 0
src/nnn.c View File

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


Loading…
Cancel
Save