aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index facdc99..c4840b2 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1187,8 +1187,9 @@ static void xrm(char *path)
if (cfg.trash)
spawn("trash-put", path, NULL, NULL, F_NORMAL);
else {
- char rm_opts[] = {'-', confirm_force(), 'r'};
+ char rm_opts[] = "-ir";
+ rm_opts[1] = confirm_force();
spawn("rm", rm_opts, path, NULL, F_NORMAL);
}
}