From f71b1309a9f304759b2452186538dc142da9b1a2 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 18 Feb 2024 06:32:49 +0530 Subject: [PATCH] Fix deletion prompt when rm is used --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 575e931f..416e0ca8 100644 --- 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);