From d9b8b0e8216ca76e25a2589ad1527d90e78aec43 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 15 Jun 2020 19:05:44 +0530 Subject: [PATCH] Clear selection after some operations (see notes) Selection is cleared after successful: - file removal - batch rename - link creation However, selection is not cleared after: - archive creation: user may want to delete the files after archiving --- src/nnn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nnn.c b/src/nnn.c index af05ca99..16dc527f 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3005,6 +3005,7 @@ static int xlink(char *prefix, char *path, char *curfname, char *buf, int *prese psel += len + 1; } + clearselection(); return count; } @@ -5963,6 +5964,7 @@ nochange: printwait(messages[MSG_FAILED], &presel); goto nochange; } + clearselection(); refresh = TRUE; break; case SEL_HELP: