From 61048258a70a2d8796defe3e02a98022d40d6358 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 17 Nov 2019 04:49:50 +0530 Subject: [PATCH] Do not reload for help, edit and page if in selection mode --- src/nnn.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nnn.c b/src/nnn.c index b84f4e2a..797f5cde 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 */