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