nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 890425c08cdf8b589ab1ce55e56fd63542076278
parent 1d8a14c6b434d00dfb95e68094d8d7d31cdbe2bb
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu,  9 Jul 2020 20:30:30 +0530

Add a note that Esc cancels

Diffstat:
Msrc/nnn.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -546,7 +546,7 @@ static const char * const messages[] = { "session name: ", "'c'p / 'm'v as?", "'c'urrent / 's'el?", - "rm -rf %s file%s?", + "rm -rf %s file%s? [Esc cancels]", "limit exceeded", "'f'ile / 'd'ir / 's'ym / 'h'ard?", "'c'li / 'g'ui?", @@ -897,9 +897,9 @@ static void xdelay(useconds_t delay) static char confirm_force(bool selection) { - char str[32]; + char str[64]; - snprintf(str, 32, messages[MSG_FORCE_RM], + snprintf(str, 64, messages[MSG_FORCE_RM], (selection ? xitoa(nselected) : "current"), (selection ? "(s)" : "")); int r = get_input(str);