mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
Support n/N to cancel forced rm
This commit is contained in:
parent
136549b1ba
commit
d38841d5f3
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue