Browse Source

Fix jump on canceled duplicate

master
Arun Prakash Jana 4 years ago
parent
commit
078d05dc7a
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/nnn.c

+ 4
- 2
src/nnn.c 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;


Loading…
Cancel
Save