nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 49c458517fd1634deeb5d9d399ce054dd1ae656b
parent 71083b0670d62a05e86c9355fb78945b84f595f5
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 21 Mar 2021 06:53:38 +0530

Show symlink size on readlink failure

Diffstat:
Msrc/nnn.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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';