commit 1238130e78bd9356ff5ea4e57798c1bcc1fec913
parent dc6c6b8ca512358c3d657f0b9e55cff8e0998b5d
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Mon, 1 Apr 2019 08:50:54 +0530
Copy last file name before refresh
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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;
}