From: Arun Prakash Jana Date: Mon, 1 Apr 2019 03:20:54 +0000 (+0530) Subject: Copy last file name before refresh X-Git-Tag: v2.5~137 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1238130e78bd9356ff5ea4e57798c1bcc1fec913;p=nnn.git Copy last file name before refresh --- diff --git a/src/nnn.c b/src/nnn.c index 23eb6800..0279fe9d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3939,6 +3939,8 @@ nochange: if (xlines != LINES || xcols != COLS) { idle = 0; setdirwatch(); + if (ndents) + copycurname(); goto begin; } @@ -3946,6 +3948,8 @@ nochange: if (idletimeout && idle == idletimeout) { idle = 0; spawn(utils[LOCKER], NULL, NULL, NULL, F_NORMAL); + if (ndents) + copycurname(); goto begin; }