1
0
Fork 0
forked from mirror/nnn

Fix deletion prompt when rm is used

This commit is contained in:
Arun Prakash Jana 2024-02-18 06:32:49 +05:30
parent eb66598145
commit f71b1309a9
No known key found for this signature in database
GPG key ID: 4A865183AF6C5631

View file

@ -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);