From: Arun Prakash Jana Date: Thu, 15 Feb 2018 13:51:58 +0000 (+0530) Subject: Re-populate after spawning shell X-Git-Tag: v1.7~16 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=035bcdb198b1160cba4cc93488776a92348839db;p=nnn.git Re-populate after spawning shell --- diff --git a/nnn.c b/nnn.c index 8347655a..7736ff9b 100644 --- a/nnn.c +++ b/nnn.c @@ -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);