Re-populate after spawning shell

This commit is contained in:
Arun Prakash Jana 2018-02-15 19:21:58 +05:30
parent af35b8a27c
commit 035bcdb198
No known key found for this signature in database
GPG key ID: A75979F35C080412

3
nnn.c
View file

@ -3049,6 +3049,9 @@ nochange:
run = xgetenv(env, run); run = xgetenv(env, run);
spawn(run, NULL, NULL, path, F_NORMAL | F_MARKER); spawn(run, NULL, NULL, path, F_NORMAL | F_MARKER);
/* Repopulate as directory content may have changed */ /* Repopulate as directory content may have changed */
/* Save current */
if (ndents > 0)
copycurname();
goto begin; goto begin;
case SEL_RUNARG: case SEL_RUNARG:
run = xgetenv(env, run); run = xgetenv(env, run);