Procházet zdrojové kódy

Ask for 'd' to duplicate

master
Arun Prakash Jana před 6 roky
rodič
revize
4c4db1430e
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Zobrazit soubor

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


Načítá se…
Zrušit
Uložit