aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-06-15 19:05:44 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-06-15 19:13:08 +0530
commitd9b8b0e8216ca76e25a2589ad1527d90e78aec43 (patch)
treef25663f4572e5e45d29187b9d35b5819230f6537
parent251a9a2e9c7172682a14da47a1270e4ea8bc7ff7 (diff)
downloadnnn-d9b8b0e8216ca76e25a2589ad1527d90e78aec43.tar.gz
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
-rw-r--r--src/nnn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index af05ca9..16dc527 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: