From: Luuk van Baal Date: Thu, 8 Sep 2022 18:07:34 +0000 (+0200) Subject: Show selected items in rm msg X-Git-Tag: v4.7~16^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4f57e0df37cf136eea4e3ddd5f864803b873c765;p=nnn.git Show selected items in rm msg Close https://github.com/jarun/nnn/issues/1479 --- diff --git a/src/nnn.c b/src/nnn.c index 77fe55a3..098c564a 100644 --- 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);