Przeglądaj źródła

Fix jump on canceled duplicate

master
Arun Prakash Jana 5 lat temu
rodzic
commit
078d05dc7a
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: A75979F35C080412
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      src/nnn.c

+ 4
- 2
src/nnn.c Wyświetl plik

@@ -6042,9 +6042,11 @@ nochange:
/* Skip renaming to same name */
if (strcmp(tmp, dents[cur].name) == 0) {
tmp = xreadline(dents[cur].name, messages[MSG_COPY_NAME]);
if (strcmp(tmp, dents[cur].name) == 0)
if (!tmp || !tmp[0] || !strcmp(tmp, dents[cur].name)) {
cfg.filtermode ? presel = FILTER : statusbar(path);
copycurname();
goto nochange;

}
ret = 'd';
}
break;


Ładowanie…
Anuluj
Zapisz