nnn

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

commit f71b1309a9f304759b2452186538dc142da9b1a2
parent eb665981457a3e5c02c7dc7a5e05f43f867fd7ed
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 18 Feb 2024 06:32:49 +0530

Fix deletion prompt when rm is used

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

diff --git a/src/nnn.c b/src/nnn.c @@ -1555,8 +1555,9 @@ static char confirm_force(bool selection, bool use_trash) { char str[64]; + /* Note: ideally we should use utils[UTIL_RM_RF] instead of the "rm -rf" string */ snprintf(str, 64, messages[MSG_FORCE_RM], - use_trash ? utils[UTIL_GIO_TRASH] + 4 : utils[UTIL_RM_RF], + use_trash ? utils[UTIL_GIO_TRASH] + 4 : "rm -rf", (selection ? "selected" : "hovered")); int r = get_input(str);