nnn

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

commit 23f8c37094ad4f071f934a5e9677a52a52cac5f3
parent f56a8caf652c34d2b507c606f3653e527e3b492a
Author: Arun <engineerarun@gmail.com>
Date:   Fri,  9 Sep 2022 00:40:35 +0530

Merge pull request #1480 from luukvbaal/master

Show selected items in rm msg
Diffstat:
Msrc/nnn.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -634,7 +634,7 @@ static const char * const messages[] = { "session name: ", "'c'p/'m'v as?", "'c'urrent/'s'el?", - "%s %s? [Esc cancels]", + "%s %s%s? [Esc cancels]", "size limit exceeded", "'f'ile/'d'ir/'s'ym/'h'ard?", "'c'li/'g'ui?", @@ -1429,7 +1429,8 @@ static char confirm_force(bool selection) snprintf(str, 64, messages[MSG_FORCE_RM], g_state.trash ? utils[UTIL_GIO_TRASH] + 4 : utils[UTIL_RM_RF], - (selection ? "selection" : "hovered")); + (selection ? "selected " : "hovered"), + (selection ? xitoa(nselected) : "")); int r = get_input(str);