diff options
| author | 2019-10-13 17:28:02 +0530 | |
|---|---|---|
| committer | 2019-10-13 17:28:02 +0530 | |
| commit | 087380968d4cd828881995b1196181a3c8c23a9f (patch) | |
| tree | 5de3000416f9642f4d1250c0a53e72f51611bbb8 /src | |
| parent | 19ea710e083a0e666a6cb8feea0dc0559e0a2416 (diff) | |
| download | nnn-087380968d4cd828881995b1196181a3c8c23a9f.tar.gz | |
Pass path as second argument
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3781,10 +3781,10 @@ nochange: xstrlcpy(path, rundir, PATH_MAX); if (runfile[0]) { xstrlcpy(lastname, runfile, NAME_MAX); - spawn(newpath, lastname, NULL, path, F_NORMAL); + spawn(newpath, lastname, path, path, F_NORMAL); runfile[0] = '\0'; } else - spawn(newpath, NULL, NULL, path, F_NORMAL); + spawn(newpath, NULL, path, path, F_NORMAL); rundir[0] = '\0'; cfg.runplugin = 0; setdirwatch(); @@ -4577,9 +4577,9 @@ nochange: mkpath(plugindir, tmp, newpath); if (ndents) - spawn(newpath, dents[cur].name, NULL, path, F_NORMAL); + spawn(newpath, dents[cur].name, path, path, F_NORMAL); else - spawn(newpath, NULL, NULL, path, F_NORMAL); + spawn(newpath, NULL, path, path, F_NORMAL); if (cfg.filtermode) presel = FILTER; |