Arun Prakash Jana 5 years ago
parent
commit
f9036bd959
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/nnn.c

+ 2
- 1
src/nnn.c View File

@@ -1187,8 +1187,9 @@ static void xrm(char *path)
if (cfg.trash) if (cfg.trash)
spawn("trash-put", path, NULL, NULL, F_NORMAL); spawn("trash-put", path, NULL, NULL, F_NORMAL);
else { else {
char rm_opts[] = {'-', confirm_force(), 'r'};
char rm_opts[] = "-ir";


rm_opts[1] = confirm_force();
spawn("rm", rm_opts, path, NULL, F_NORMAL); spawn("rm", rm_opts, path, NULL, F_NORMAL);
} }
} }


Loading…
Cancel
Save