From: Arun Prakash Jana Date: Wed, 25 Aug 2021 11:02:08 +0000 (+0530) Subject: Exports special variables before running plugins X-Git-Tag: v4.3~28 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=742759f32d014883d2b871adcc0f643f58dbcbc5;p=nnn.git Exports special variables before running plugins --- diff --git a/src/nnn.c b/src/nnn.c index 712b0eb8..0d250712 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6800,6 +6800,8 @@ nochange: rundir[0] = '\0'; clearfilter(); + setexports(newpath); + if (chdir(path) == -1 || !run_plugin(&path, pent->name, runfile, &lastname, &lastdir)) { @@ -7534,6 +7536,8 @@ nochange: } else r = TRUE; + setexports(newpath); + if (!run_plugin(&path, tmp, (ndents ? pdents[cur].name : NULL), &lastname, &lastdir)) { printwait(messages[MSG_FAILED], &presel);