aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-06 19:30:16 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-06 19:30:16 +0530
commite1ed4c62c5cb76e443a5e85d44d114163d466458 (patch)
tree624e8d335b9206811f8846a623860c964260acff
parentb060115a19eaa0b950f7882dec6f7fa49415a922 (diff)
downloadnnn-e1ed4c62c5cb76e443a5e85d44d114163d466458.tar.gz
Fix #510
-rw-r--r--src/nnn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b247ef2..5cd51a5 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -6210,6 +6210,7 @@ nochange:
setenv(envs[ENV_NCUR], (ndents ? dents[cur].name : ""), 1);
spawn(shell, NULL, NULL, path, F_CLI);
+ setenv(env_cfg[NNNLVL], xitoa(tmp ? atoi(tmp) : 0), 1);
r = TRUE;
break;
case SEL_LAUNCH: