From 5f18a0892c222f5efe28938c65d9a1ee8544b5a0 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 17 Jan 2020 20:26:14 +0530 Subject: [PATCH] Clear lastname is the top file is deleted --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 43fd107a..b4154360 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;