Support n/N to cancel forced rm

This commit is contained in:
Arun Prakash Jana 2022-03-13 12:37:50 +05:30
parent 136549b1ba
commit d38841d5f3
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions

View File

@ -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 */