]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix symlink to dir indicator in detail mode
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 13 Apr 2020 15:12:19 +0000 (20:42 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 13 Apr 2020 15:12:19 +0000 (20:42 +0530)
src/nnn.c

index 36e8b7b025b8ca671fcb752bb37455cd7403e12d..edcf3de37bdd91d88a48035eb1656f0cb3897b8b 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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