mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix jump on canceled duplicate
This commit is contained in:
parent
1014d941b1
commit
078d05dc7a
|
@ -6042,9 +6042,11 @@ nochange:
|
||||||
/* Skip renaming to same name */
|
/* Skip renaming to same name */
|
||||||
if (strcmp(tmp, dents[cur].name) == 0) {
|
if (strcmp(tmp, dents[cur].name) == 0) {
|
||||||
tmp = xreadline(dents[cur].name, messages[MSG_COPY_NAME]);
|
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;
|
goto nochange;
|
||||||
|
}
|
||||||
ret = 'd';
|
ret = 'd';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue