nnn

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

commit 742759f32d014883d2b871adcc0f643f58dbcbc5
parent ad968b88da8d5cdcf8630a22f21dfcdc3edf275c
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 25 Aug 2021 16:32:08 +0530

Exports special variables before running plugins

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

diff --git 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);