Fix jump on canceled duplicate

This commit is contained in:
Arun Prakash Jana 2020-04-05 14:42:32 +05:30
parent 1014d941b1
commit 078d05dc7a
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

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