]> Sergey Matveev's repositories - nnn.git/commitdiff
With dimming, @ is not required for symlink to dir
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 5 Apr 2020 01:00:28 +0000 (06:30 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 5 Apr 2020 01:00:28 +0000 (06:30 +0530)
src/nnn.c

index 090a15c8a002f12684ab4584f18efb992ac5476f..e2aa7ffe2af7948883653a7eec2b26263c7fe3e9 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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;