From d38841d5f327f9ae4db6ca40a286c400b422b102 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 13 Mar 2022 12:37:50 +0530 Subject: [PATCH] Support n/N to cancel forced rm --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 878e15d8..841df294 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -647,7 +647,7 @@ static const char * const messages[] = { "session name: ", "'c'p / 'm'v as?", "'c'urrent / 's'el?", - "%s %s? [Esc cancels]", + "%s %s? [Esc/n/N cancels]", "limit exceeded", "'f'ile / 'd'ir / 's'ym / 'h'ard?", "'c'li / 'g'ui?", @@ -1454,7 +1454,7 @@ static char confirm_force(bool selection) int r = get_input(str); - if (r == ESC) + if (r == ESC || r == 'n' || r == 'N') return '\0'; /* cancel */ if (r == 'y' || r == 'Y') return 'f'; /* forceful for rm */