diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-05 19:52:07 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-05 19:52:07 +0530 |
commit | 94e4dc51ba7ebcbdaf94dc3bb20c59ee22dc84e5 (patch) | |
tree | 1ed12455b84bb5df23c30630839c83253065748e /src | |
parent | 2559ddbd38f7331bc3b5bc0bf0872312dd91c8c9 (diff) | |
download | nnn-94e4dc51ba7ebcbdaf94dc3bb20c59ee22dc84e5.tar.gz |
Make bulk delete more verbose
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -621,7 +621,11 @@ static void xdelay(void) static char confirm_force(void) { - int r = get_input("use force? [y/Y confirms]"); + char str[64] = {0}; + int r; + + snprintf(str, 64, "forcibly remove %d files (UNRECOVERABLE)? [y/Y confirms]", nselected); + r = get_input(str); if (r == 'y' || r == 'Y') return 'f'; /* forceful */ @@ -1303,7 +1307,6 @@ static void xrm(char *path) else { char rm_opts[] = "-ir"; - rm_opts[1] = confirm_force(); spawn("rm", rm_opts, path, NULL, F_NORMAL); } } |