From 6024c518399c9f67e133a5bc7f2e2381c08fd08c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 14 Feb 2020 22:44:49 +0530 Subject: Remember file name when refresh is not requested --- src/nnn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 4c81286..3c81821 100644 --- 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]) { -- cgit v1.2.3-70-g09d2