From: Arun Prakash Jana Date: Fri, 17 Jan 2020 14:56:14 +0000 (+0530) Subject: Clear lastname is the top file is deleted X-Git-Tag: v3.0~73 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5f18a0892c222f5efe28938c65d9a1ee8544b5a0;p=nnn.git Clear lastname is the top file is deleted --- 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;