]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix rm prompt
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 28 Jul 2022 14:08:55 +0000 (19:38 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 28 Jul 2022 14:08:55 +0000 (19:38 +0530)
Esc - cancels the search
y/Y - adds the force option
n/N/any other key - prompts for every file

src/nnn.c

index 98689e8efbdd022878fd331990c13f0283e25ae0..5305c5fa3449768cda9fe8aaf59c1ba9de839b2c 100644 (file)
--- 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 */