]> Sergey Matveev's repositories - nnn.git/commitdiff
Symlinks to dirs are recognized by color
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Aug 2019 14:33:58 +0000 (20:03 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Aug 2019 14:33:58 +0000 (20:03 +0530)
README.md
src/nnn.c

index 0dd3c208b40d35a174237d815e04f69bd86e5f34..38dd11fb651651264c768778a4defa0596434d18 100644 (file)
--- a/README.md
+++ b/README.md
@@ -411,7 +411,6 @@ The following indicators are used in the detail view:
 | <code>&#124;</code> | Fifo |
 | `=` | Socket |
 | `@` | Symbolic Link |
-| `@/` | Symbolic Link to directory |
 | `b` | Block Device |
 | `c` | Character Device |
 | `?` | Unknown |
index f0367106d2bd041b429c8e0cb2441bab61f8f88f..41acdd5876904d543ac945237663f8d283fa2662 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2411,10 +2411,7 @@ static void printent_long(const struct entry *ent, int sel, uint namecols)
                        printw("%c%-16.16s  %s        /  %s/\n", cp, timebuf, permbuf, pname);
                break;
        case S_IFLNK:
-               if (ent->flags & DIR_OR_LINK_TO_DIR)
-                       printw("%c%-16.16s  %s       @/  %s@\n", cp, timebuf, permbuf, pname);
-               else
-                       printw("%c%-16.16s  %s        @  %s@\n", cp, timebuf, permbuf, pname);
+               printw("%c%-16.16s  %s        @  %s@\n", cp, timebuf, permbuf, pname);
                break;
        case S_IFSOCK:
                ind1 = ind2[0] = '='; // fallthrough