mirror of
https://github.com/jarun/nnn.git
synced 2025-04-19 03:45:01 +00:00
Show symlink size on readlink failure
This commit is contained in:
parent
71083b0670
commit
49c458517f
1 changed files with 1 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue