]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #510
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 6 Apr 2020 14:00:16 +0000 (19:30 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 6 Apr 2020 14:00:16 +0000 (19:30 +0530)
src/nnn.c

index b247ef20e1ec3376265c4d9f3f06740afd0ee10a..5cd51a53790376729f062049589ed3bc33bade8d 100644 (file)
--- 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: