diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-08-04 20:52:54 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-08-04 20:52:54 +0530 |
commit | dec683c39e217f605262e71ecdd08ef0cc3e87e1 (patch) | |
tree | a0cfc79f009f50eb5a36f78690fa4947a65ac53d | |
parent | 9431213e499d403db14cfc86eebbf0099193b86a (diff) | |
download | nnn-dec683c39e217f605262e71ecdd08ef0cc3e87e1.tar.gz |
Better prompt for rename/duplicate key
-rw-r--r-- | src/nnn.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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) |