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
1 changed files with 2 additions and 1 deletions

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