From: Arun Prakash Jana Date: Fri, 8 Nov 2019 21:22:44 +0000 (+0530) Subject: Fix fzcd not working from other contexts X-Git-Tag: v2.8~99 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=12f108cac9ce5b573473904ad0ecef5535448347;p=nnn.git Fix fzcd not working from other contexts --- diff --git a/src/nnn.c b/src/nnn.c index 0fc42f43..ad45dbd0 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))