Better prompt for rename/duplicate key

This commit is contained in:
Arun Prakash Jana 2019-08-04 20:52:54 +05:30
parent 9431213e49
commit dec683c39e
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 7 additions and 3 deletions

View File

@ -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)