]> Sergey Matveev's repositories - nnn.git/commitdiff
Remember file name when refresh is not requested
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 14 Feb 2020 17:14:49 +0000 (22:44 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 14 Feb 2020 17:14:49 +0000 (22:44 +0530)
src/nnn.c

index 4c812863084b66b3fb09f0f41cdc0609398e0575..3c81821593793fbc316f0698c3d7861b9c2c617e 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5870,13 +5870,13 @@ nochange:
                                        goto nochange;
                                }
 
+                               if (ndents)
+                                       copycurname();
+
                                if (!r) {
                                        cfg.filtermode ? presel = FILTER : statusbar(path);
                                        goto nochange;
                                }
-
-                               if (ndents)
-                                       copycurname();
                        } else { /* 'Return/Enter' enters the plugin directory */
                                cfg.runplugin ^= 1;
                                if (!cfg.runplugin && rundir[0]) {