nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 22825c0f37fab79f586eba5c0ed0620bdb4dccb6
parent fc7a21f6e1e87c11a18ab3dd33bfee8a0ef7051c
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 10 Feb 2019 13:25:54 +0530

Simplify check

Diffstat:
Msrc/nnn.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3867,10 +3867,7 @@ nochange: } if (S_ISREG(sb.st_mode)) { - if (ndents) - tmp = dents[cur].name; - else - tmp = NULL; + tmp = ndents ? dents[cur].name : NULL; spawn(shell, scriptpath, tmp, path, F_NORMAL | F_SIGINT); } break;