]> Sergey Matveev's repositories - nnn.git/commitdiff
Do not reload for help, edit and page if in selection mode
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 23:19:50 +0000 (04:49 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Nov 2019 23:19:50 +0000 (04:49 +0530)
src/nnn.c

index b84f4e2ad215c868b18e8823da76a26f6a40895a..797f5cdee72f420314054cdc20082f20d024ae5d 100644 (file)
--- 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 */