aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b84f4e2..797f5cd 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4606,6 +4606,11 @@ nochange:
break;
}
+ /* Do not reload in some cases if in selection mode */
+ if (cfg.selmode && (sel == SEL_HELP
+ || sel == SEL_RUNEDIT || sel == SEL_RUNPAGE))
+ goto nochange;
+
/* In case of successful operation, reload contents */
/* Continue in navigate-as-you-type mode, if enabled */