aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-04 20:52:54 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-04 20:52:54 +0530
commitdec683c39e217f605262e71ecdd08ef0cc3e87e1 (patch)
treea0cfc79f009f50eb5a36f78690fa4947a65ac53d
parent9431213e499d403db14cfc86eebbf0099193b86a (diff)
downloadnnn-dec683c39e217f605262e71ecdd08ef0cc3e87e1.tar.gz
Better prompt for rename/duplicate key
-rw-r--r--src/nnn.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index a03e66a..d343e97 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4193,9 +4193,13 @@ nochange:
tmp = xreadline(NULL, "name/link suffix [@ for none]: ");
break;
default: /* SEL_RENAME */
- dup = get_input("Press 'd' to duplicate");
- tmp = xreadline(dents[cur].name, "");
- break;
+ dup = get_input("Press 'r'(ename) / 'd'(uplicate)");
+ if (dup == 'r' || dup == 'd') {
+ tmp = xreadline(dents[cur].name, "");
+ break;
+ }
+
+ tmp = NULL;
}
if (!tmp || !*tmp)