Skip to content

Commit

Permalink
Fix deletion prompt when rm is used
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Feb 18, 2024
1 parent eb66598 commit f71b130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f71b130

Please sign in to comment.