From 83825a7d1143d8174fbea4061e827a711f9df54c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 28 Jul 2022 19:38:55 +0530 Subject: [PATCH] Fix rm prompt Esc - cancels the search y/Y - adds the force option n/N/any other key - prompts for every file --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 98689e8e..5305c5fa 100644 --- 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 */