aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 23eb680..0279fe9 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;
}