From c58434d07880aa8d4b767f1d8c0fe9de70cff4ff Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 13 Apr 2020 20:42:19 +0530 Subject: [PATCH] Fix symlink to dir indicator in detail mode --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 36e8b7b0..edcf3de3 100644 --- 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