aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 43fd107..b415436 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5279,7 +5279,8 @@ nochange:
if (cur && access(newpath, F_OK) == -1) {
move_cursor(cur - 1, 0);
copycurname();
- }
+ } else
+ lastname[0] = '\0';
if (cfg.filtermode)
presel = FILTER;