mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Show symlink size on readlink failure
This commit is contained in:
parent
71083b0670
commit
49c458517f
|
@ -5688,8 +5688,7 @@ static void statusbar(char *path)
|
||||||
{
|
{
|
||||||
i = readlink(pent->name, g_buf, PATH_MAX);
|
i = readlink(pent->name, g_buf, PATH_MAX);
|
||||||
|
|
||||||
if (i > 0)
|
addstr(coolsize(i >= 0 ? i : pent->size));
|
||||||
addstr(coolsize(i));
|
|
||||||
|
|
||||||
if (i > 1) {
|
if (i > 1) {
|
||||||
g_buf[i] = '\0';
|
g_buf[i] = '\0';
|
||||||
|
|
Loading…
Reference in a new issue