commit d9b8b0e8216ca76e25a2589ad1527d90e78aec43
parent 251a9a2e9c7172682a14da47a1270e4ea8bc7ff7
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Mon, 15 Jun 2020 19:05:44 +0530
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
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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: