From e1ed4c62c5cb76e443a5e85d44d114163d466458 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 6 Apr 2020 19:30:16 +0530 Subject: Fix #510 --- src/nnn.c | 1 + 1 file changed, 1 insertion(+) 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: -- cgit v1.2.3-70-g09d2