src/nnn.c | 4 ++++ diff --git a/src/nnn.c b/src/nnn.c index 712b0eb8d5f2c222abf41a5d98a5a7e146344581..0d250712f26519cd2bbcd42a06177201887cab95 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6800,6 +6800,8 @@ xstrsncpy(path, rundir, PATH_MAX); rundir[0] = '\0'; clearfilter(); + setexports(newpath); + if (chdir(path) == -1 || !run_plugin(&path, pent->name, runfile, &lastname, &lastdir)) { @@ -7533,6 +7535,8 @@ ++tmp; r = FALSE; /* Do not refresh dir after completion */ } else r = TRUE; + + setexports(newpath); if (!run_plugin(&path, tmp, (ndents ? pdents[cur].name : NULL), &lastname, &lastdir)) {