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
1 changed files with 3 additions and 0 deletions

3
nnn.c
View File

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