Exports special variables before running plugins

This commit is contained in:
Arun Prakash Jana 2021-08-25 16:32:08 +05:30
parent ad968b88da
commit 742759f32d
1 changed files with 4 additions and 0 deletions

View File

@ -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);