From: Arun Prakash Jana Date: Mon, 15 Jun 2020 13:35:44 +0000 (+0530) Subject: Clear selection after some operations (see notes) X-Git-Tag: v3.3~29 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d9b8b0e8216ca76e25a2589ad1527d90e78aec43;p=nnn.git 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 --- 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: