mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Simplify show details
This commit is contained in:
parent
71fbf80925
commit
5d1ca249f9
|
@ -2923,13 +2923,7 @@ nochange:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
||||||
|
if (lstat(newpath, &sb) == -1 || !show_stats(newpath, dents[cur].name, &sb)) {
|
||||||
if (lstat(newpath, &sb) == -1) {
|
|
||||||
dentfree(dents);
|
|
||||||
errexit();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!show_stats(newpath, dents[cur].name, &sb)) {
|
|
||||||
printwarn();
|
printwarn();
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue