]> Sergey Matveev's repositories - nnn.git/commitdiff
Copy last file name before refresh
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 1 Apr 2019 03:20:54 +0000 (08:50 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 1 Apr 2019 03:20:54 +0000 (08:50 +0530)
src/nnn.c

index 23eb6800067e080aaa7fba1c60773a7be3a13efa..0279fe9d40b72ee428767090b0de86c07410a554 100644 (file)
--- 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;
                        }