mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Simplify check
This commit is contained in:
parent
fc7a21f6e1
commit
22825c0f37
|
@ -3867,10 +3867,7 @@ nochange:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (S_ISREG(sb.st_mode)) {
|
if (S_ISREG(sb.st_mode)) {
|
||||||
if (ndents)
|
tmp = ndents ? dents[cur].name : NULL;
|
||||||
tmp = dents[cur].name;
|
|
||||||
else
|
|
||||||
tmp = NULL;
|
|
||||||
spawn(shell, scriptpath, tmp, path, F_NORMAL | F_SIGINT);
|
spawn(shell, scriptpath, tmp, path, F_NORMAL | F_SIGINT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue