diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-04-05 14:42:32 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-04-05 14:42:32 +0530 |
commit | 078d05dc7a0e3ae331a4eaae07a644fe9cde56ee (patch) | |
tree | 14195bbcc98ccab2202aeefa0e7a72dce4e2acd4 /src/nnn.c | |
parent | 1014d941b14e805bc5f33d56e481f0cd1d9ff988 (diff) | |
download | nnn-078d05dc7a0e3ae331a4eaae07a644fe9cde56ee.tar.gz |
Fix jump on canceled duplicate
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |