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';
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue