commit 83825a7d1143d8174fbea4061e827a711f9df54c
parent 22db656b8dc03629b4f7ff55a502f7960cc7d006
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Thu, 28 Jul 2022 19:38:55 +0530
Fix rm prompt
Esc - cancels the search
y/Y - adds the force option
n/N/any other key - prompts for every file
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -629,7 +629,7 @@ static const char * const messages[] = {
"session name: ",
"'c'p/'m'v as?",
"'c'urrent/'s'el?",
- "%s %s? [Esc/n/N cancels]",
+ "%s %s? [Esc cancels]",
"limit exceeded",
"'f'ile/'d'ir/'s'ym/'h'ard?",
"'c'li/'g'ui?",
@@ -1430,7 +1430,7 @@ static char confirm_force(bool selection)
int r = get_input(str);
- if (r == ESC || r == 'n' || r == 'N')
+ if (r == ESC)
return '\0'; /* cancel */
if (r == 'y' || r == 'Y')
return 'f'; /* forceful for rm */