Fix rm prompt

Esc - cancels the search
y/Y - adds the force option
n/N/any other key - prompts for every file
This commit is contained in:
Arun Prakash Jana 2022-07-28 19:38:55 +05:30
parent 22db656b8d
commit 83825a7d11
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions

View File

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