aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-09 02:52:44 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-09 02:52:44 +0530
commit12f108cac9ce5b573473904ad0ecef5535448347 (patch)
treeaf856406cdd37032f8c3c7a7f8050203d7dc6db6 /src
parent53a2e4c56058db01dbe7bcbaeb37a9352fc73959 (diff)
downloadnnn-12f108cac9ce5b573473904ad0ecef5535448347.tar.gz
Fix fzcd not working from other contexts
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 0fc42f4..ad45dbd 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4971,6 +4971,7 @@ nochange:
} else {
xstrlcpy(rundir, path, PATH_MAX);
xstrlcpy(path, plugindir, PATH_MAX);
+ cfg.runctx = cfg.curctx;
if (!run_selected_plugin(&path, tmp, newpath, rundir,
(ndents ? dents[cur].name : NULL),
&lastname, &lastdir))