src/nnn.c | 4 ++-- src/nnn.h | 6 +++--- diff --git a/src/nnn.c b/src/nnn.c index b5e6b26df19a1b734c6301fe8f06ecbc32367a65..a4fab4da60fac1aa5f0a79e0bfc66c41947a18fd 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5225,7 +5225,7 @@ static bool handle_cmd(enum action sel, const char *current, char *newpath) { endselection(); - if (sel == SEL_RUNCMD) + if (sel == SEL_PROMPT) return prompt_run(current); if (sel == SEL_LAUNCH) @@ -7467,7 +7467,7 @@ clearfilter(); goto begin; case SEL_SHELL: // fallthrough case SEL_LAUNCH: // fallthrough - case SEL_RUNCMD: + case SEL_PROMPT: r = handle_cmd(sel, (ndents ? pdents[cur].name : ""), newpath); /* Continue in type-to-nav mode, if enabled */ diff --git a/src/nnn.h b/src/nnn.h index 95d4fc349d0e6eb57151a4dfb68ae4ee924c624c..6e934dfaf39d10eba803ee23875afe11a36c67f6 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -104,7 +104,7 @@ SEL_EDIT, SEL_PLUGIN, SEL_SHELL, SEL_LAUNCH, - SEL_RUNCMD, + SEL_PROMPT, SEL_LOCK, SEL_SESSIONS, SEL_EXPORT, @@ -255,8 +255,8 @@ { '!', SEL_SHELL }, { CONTROL(']'), SEL_SHELL }, /* Launcher */ { '=', SEL_LAUNCH }, - /* Run a command */ - { ']', SEL_RUNCMD }, + /* Show command prompt */ + { ']', SEL_PROMPT }, /* Lock screen */ { '0', SEL_LOCK }, /* Manage sessions */