Drop ^T, no reload after empty cmd at prompt

This commit is contained in:
Arun Prakash Jana 2019-12-30 00:33:34 +05:30
parent c1f168c7cb
commit 8955d039c6
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 3 additions and 2 deletions

View file

@ -3494,7 +3494,7 @@ static void show_help(const char *path)
"cv version%-17cE Extension\n" "cv version%-17cE Extension\n"
"1MISC\n" "1MISC\n"
"9! ^] Shell%-17c; x Execute plugin\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" "cs Manage session%-10c= Launch app\n"
"cc Connect remote%-10cu Unmount\n" "cc Connect remote%-10cu Unmount\n"
}; };
@ -5341,6 +5341,8 @@ nochange:
#endif #endif
if (tmp && *tmp) // NOLINT if (tmp && *tmp) // NOLINT
prompt_run(tmp, (ndents ? dents[cur].name : ""), path); prompt_run(tmp, (ndents ? dents[cur].name : ""), path);
else
goto nochange;
} }
/* Continue in navigate-as-you-type mode, if enabled */ /* Continue in navigate-as-you-type mode, if enabled */

View file

@ -243,7 +243,6 @@ static struct key bindings[] = {
{ '=', SEL_LAUNCH }, { '=', SEL_LAUNCH },
/* Run a command */ /* Run a command */
{ ']', SEL_RUNCMD }, { ']', SEL_RUNCMD },
{ CONTROL('T'), SEL_RUNCMD },
/* Open in EDITOR or PAGER */ /* Open in EDITOR or PAGER */
{ 'e', SEL_RUNEDIT }, { 'e', SEL_RUNEDIT },
{ 'p', SEL_RUNPAGE }, { 'p', SEL_RUNPAGE },