]> Sergey Matveev's repositories - nnn.git/commitdiff
Drop ^T, no reload after empty cmd at prompt
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 29 Dec 2019 19:03:34 +0000 (00:33 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 29 Dec 2019 19:03:34 +0000 (00:33 +0530)
src/nnn.c
src/nnn.h

index 40d592a24bcca647be7fe41133d5cdba2b9e9b84..42d2298622e4d0d9d329bf4e1ed83aef5287dfbd 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3494,7 +3494,7 @@ static void show_help(const char *path)
                  "cv  version%-17cE  Extension\n"
                "1MISC\n"
               "9! ^]  Shell%-17c; x  Execute plugin\n"
-              "9] ^T  Cmd prompt%-13c^P  Pick plugin\n"
+                 "c]  Cmd prompt%-13c^P  Pick plugin\n"
                  "cs  Manage session%-10c=  Launch app\n"
                  "cc  Connect remote%-10cu  Unmount\n"
               };
@@ -5341,6 +5341,8 @@ nochange:
 #endif
                                if (tmp && *tmp) // NOLINT
                                        prompt_run(tmp, (ndents ? dents[cur].name : ""), path);
+                               else
+                                       goto nochange;
                        }
 
                        /* Continue in navigate-as-you-type mode, if enabled */
index 17bcb214ce3367dce894e2f4577748b22d607826..fa26e6454f907162dca9ef3f2c5259b306918fed 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -243,7 +243,6 @@ static struct key bindings[] = {
        { '=',            SEL_LAUNCH },
        /* Run a command */
        { ']',            SEL_RUNCMD },
-       { CONTROL('T'),   SEL_RUNCMD },
        /* Open in EDITOR or PAGER */
        { 'e',            SEL_RUNEDIT },
        { 'p',            SEL_RUNPAGE },