From 49c458517fd1634deeb5d9d399ce054dd1ae656b Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 21 Mar 2021 06:53:38 +0530 Subject: [PATCH] Show symlink size on readlink failure --- src/nnn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index a6cb7d2a..4a9bc674 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5688,8 +5688,7 @@ static void statusbar(char *path) { i = readlink(pent->name, g_buf, PATH_MAX); - if (i > 0) - addstr(coolsize(i)); + addstr(coolsize(i >= 0 ? i : pent->size)); if (i > 1) { g_buf[i] = '\0';