mirror of
https://github.com/jarun/nnn.git
synced 2025-01-09 17:39:38 +00:00
Exports special variables before running plugins
This commit is contained in:
parent
ad968b88da
commit
742759f32d
|
@ -6800,6 +6800,8 @@ nochange:
|
||||||
rundir[0] = '\0';
|
rundir[0] = '\0';
|
||||||
clearfilter();
|
clearfilter();
|
||||||
|
|
||||||
|
setexports(newpath);
|
||||||
|
|
||||||
if (chdir(path) == -1
|
if (chdir(path) == -1
|
||||||
|| !run_plugin(&path, pent->name,
|
|| !run_plugin(&path, pent->name,
|
||||||
runfile, &lastname, &lastdir)) {
|
runfile, &lastname, &lastdir)) {
|
||||||
|
@ -7534,6 +7536,8 @@ nochange:
|
||||||
} else
|
} else
|
||||||
r = TRUE;
|
r = TRUE;
|
||||||
|
|
||||||
|
setexports(newpath);
|
||||||
|
|
||||||
if (!run_plugin(&path, tmp, (ndents ? pdents[cur].name : NULL),
|
if (!run_plugin(&path, tmp, (ndents ? pdents[cur].name : NULL),
|
||||||
&lastname, &lastdir)) {
|
&lastname, &lastdir)) {
|
||||||
printwait(messages[MSG_FAILED], &presel);
|
printwait(messages[MSG_FAILED], &presel);
|
||||||
|
|
Loading…
Reference in a new issue