aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-04 11:48:45 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-04 11:48:45 +0530
commit4c4db1430e7725dff5cce347e8b9f583362bda9d (patch)
treed74205973e5044240aa9f9e8cd70a28da2725a75 /src/nnn.c
parent9fdfd9388dcd71b285cbe6fb761cfd51c77f3d06 (diff)
downloadnnn-4c4db1430e7725dff5cce347e8b9f583362bda9d.tar.gz
Ask for 'd' to duplicate
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 808eaf6..c7179d4 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4188,7 +4188,7 @@ nochange:
tmp = xreadline(NULL, "name/link suffix [@ for none]: ");
break;
default: /* SEL_RENAME */
- dup = get_input("duplicate? [y/Y confirms]");
+ dup = get_input("Press 'd' to duplicate");
tmp = xreadline(dents[cur].name, "");
break;
}
@@ -4273,9 +4273,9 @@ nochange:
if (sel == SEL_RENAME) {
/* Rename the file */
- if (dup == 'y' || dup == 'Y') {
+ if (dup == 'd')
spawn("cp -r", dents[cur].name, tmp, path, F_CLI | F_NOTRACE);
- } else if (renameat(fd, dents[cur].name, fd, tmp) != 0) {
+ else if (renameat(fd, dents[cur].name, fd, tmp) != 0) {
close(fd);
printwarn(&presel);
goto nochange;