mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +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: ",
|
"session name: ",
|
||||||
"'c'p / 'm'v as?",
|
"'c'p / 'm'v as?",
|
||||||
"'c'urrent / 's'el?",
|
"'c'urrent / 's'el?",
|
||||||
"%s %s? [Esc cancels]",
|
"%s %s? [Esc/n/N cancels]",
|
||||||
"limit exceeded",
|
"limit exceeded",
|
||||||
"'f'ile / 'd'ir / 's'ym / 'h'ard?",
|
"'f'ile / 'd'ir / 's'ym / 'h'ard?",
|
||||||
"'c'li / 'g'ui?",
|
"'c'li / 'g'ui?",
|
||||||
|
@ -1454,7 +1454,7 @@ static char confirm_force(bool selection)
|
||||||
|
|
||||||
int r = get_input(str);
|
int r = get_input(str);
|
||||||
|
|
||||||
if (r == ESC)
|
if (r == ESC || r == 'n' || r == 'N')
|
||||||
return '\0'; /* cancel */
|
return '\0'; /* cancel */
|
||||||
if (r == 'y' || r == 'Y')
|
if (r == 'y' || r == 'Y')
|
||||||
return 'f'; /* forceful for rm */
|
return 'f'; /* forceful for rm */
|
||||||
|
|
Loading…
Reference in a new issue