aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-16 20:03:58 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-16 20:03:58 +0530
commitdb83e95a377449b767ae9a30066699f8b4963bbf (patch)
treed7c3305ed6d85fe77249f7329ee239119eedd605
parent99278492220a5819834f0cde0b771ad92a531c8c (diff)
downloadnnn-db83e95a377449b767ae9a30066699f8b4963bbf.tar.gz
Symlinks to dirs are recognized by color
-rw-r--r--README.md1
-rw-r--r--src/nnn.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/README.md b/README.md
index 0dd3c20..38dd11f 100644
--- 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 |
diff --git a/src/nnn.c b/src/nnn.c
index f036710..41acdd5 100644
--- 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