aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-30 00:33:34 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-30 00:33:34 +0530
commit8955d039c66251cb62eb2c49ca745c398edd4db1 (patch)
tree7ea178b0ef123dd7a312962e60dfd5a44daa3e10 /src
parentc1f168c7cbbf87a8f1acc4ba88e14d68da556392 (diff)
downloadnnn-8955d039c66251cb62eb2c49ca745c398edd4db1.tar.gz
Drop ^T, no reload after empty cmd at prompt
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
-rw-r--r--src/nnn.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 40d592a..42d2298 100644
--- 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 */
diff --git a/src/nnn.h b/src/nnn.h
index 17bcb21..fa26e64 100644
--- 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 },