From 078d05dc7a0e3ae331a4eaae07a644fe9cde56ee Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 5 Apr 2020 14:42:32 +0530 Subject: Fix jump on canceled duplicate --- src/nnn.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index d542169..f4224a1 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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; -- cgit v1.2.3-70-g09d2