aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index cf2826f..a2608ed 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5259,6 +5259,12 @@ nochange:
goto nochange;
}
+ if (tmp[0] == '-' && tmp[1]) {
+ ++tmp;
+ r = FALSE; /* Do not refresh dir after completion */
+ } else
+ r = TRUE;
+
if (!run_selected_plugin(&path, tmp, newpath,
(ndents ? dents[cur].name : NULL),
&lastname, &lastdir)) {
@@ -5266,6 +5272,11 @@ nochange:
goto nochange;
}
+ if (!r) {
+ clearprompt();
+ goto nochange;
+ }
+
if (ndents)
copycurname();
} else {