]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix fzcd not working from other contexts
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 8 Nov 2019 21:22:44 +0000 (02:52 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 8 Nov 2019 21:22:44 +0000 (02:52 +0530)
src/nnn.c

index 0fc42f43ff300b846deae3009705fd6c212b5b76..ad45dbd06dbc8ee621fa2058bdd804392cd99598 100644 (file)
--- 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))