]> Sergey Matveev's repositories - nnn.git/commitdiff
Minor reformat
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Oct 2019 06:23:34 +0000 (11:53 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Oct 2019 06:23:34 +0000 (11:53 +0530)
src/nnn.c

index 70c945e0be9034ad65e363d14687faf61e0b15f6..aa4c513ee611905f66593a460af0785e15ae1be4 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4667,13 +4667,12 @@ nochange:
                                selendid = ndents - 1;
                        }
 
-                       for (r = selstartid; r <= selendid; ++r) {
+                       for (r = selstartid; r <= selendid; ++r)
                                if (!(dents[r].flags & FILE_SELECTED)) {
                                        appendfpath(newpath, mkpath(path, dents[r].name, newpath));
                                        dents[r].flags |= FILE_SELECTED;
                                        ++nselected;
                                }
-                       }
 
                        /* Show the range count */
                        //r = selendid - selstartid + 1;
@@ -4948,10 +4947,7 @@ nochange:
                                                goto nochange;
 
                                        mkpath(plugindir, tmp, newpath);
-                                       if (ndents)
-                                               spawn(newpath, dents[cur].name, path, path, F_NORMAL);
-                                       else
-                                               spawn(newpath, NULL, path, path, F_NORMAL);
+                                       spawn(newpath, (ndents ? dents[cur].name : NULL), path, path, F_NORMAL);
 
                                        if (cfg.filtermode)
                                                presel = FILTER;