aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-19 21:01:59 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-19 21:01:59 +0530
commit9729b1f5a60d612e173695f3e3a997a44f5d7a94 (patch)
treea4306cebd3b86168e8302869bee761cacaa46cd6 /src
parent97e16364bb52a8132254b08fc95ab5a094ec9537 (diff)
downloadnnn-9729b1f5a60d612e173695f3e3a997a44f5d7a94.tar.gz
Refresh dirs on disruptive chnages, update sxiv plugin to browse and rename
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 53d8575..ff3fe11 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4591,6 +4591,8 @@ nochange:
case SEL_RUNPAGE: // fallthrough
case SEL_LOCK:
{
+ bool refresh = FALSE;
+
if (ndents)
mkpath(path, dents[cur].name, newpath);
else if (sel == SEL_ARCHIVELS || sel == SEL_EXTRACT
@@ -4600,11 +4602,14 @@ nochange:
switch (sel) {
case SEL_ARCHIVELS:
handle_archive(newpath, path, 'l');
+ refresh = TRUE;
break;
case SEL_EXTRACT:
handle_archive(newpath, path, 'x');
+ refresh = TRUE;
break;
case SEL_REDRAW:
+ refresh = TRUE;
break;
case SEL_RENAMEMUL:
endselection();
@@ -4613,6 +4618,7 @@ nochange:
printwait(messages[OPERATION_FAILED], &presel);
goto nochange;
}
+ refresh = TRUE;
break;
case SEL_HELP:
show_help(path);
@@ -4631,7 +4637,7 @@ nochange:
/* In case of successful operation, reload contents */
/* Continue in navigate-as-you-type mode, if enabled */
- if (cfg.filtermode && sel != SEL_REDRAW)
+ if (cfg.filtermode && !refresh)
break;
/* Save current */