aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-05 06:30:28 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-05 06:30:28 +0530
commit0c966b21787186d2920934111d93ee1d1babf1c1 (patch)
treecbf8df6b86d7b0ad265199d8e6339fbeb94794aa
parent02c02c520d42ac769c3de2a82677fbb2fbd86df4 (diff)
downloadnnn-0c966b21787186d2920934111d93ee1d1babf1c1.tar.gz
With dimming, @ is not required for symlink to dir
-rw-r--r--src/nnn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 090a15c..e2aa7ff 100644
--- 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;