From 359b6f7a37292f3545da86fa3fb3866683227dfd Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 2 Aug 2020 19:13:18 +0530 Subject: Clear selection list after copy Without this, there is a conflict with using the `-u` option (use selection). After copying selected files, the selection is intact and if the user issues a deletion next, the source files (meant for copying) are deleted. --- src/nnn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index baeef06..336c0c1 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1999,9 +1999,8 @@ static bool cpmvrm_selection(enum action sel, char *path) return FALSE; } - /* Clear selection on move or delete */ - if (sel != SEL_CP) - clearselection(); + /* Clear selection */ + clearselection(); return TRUE; } -- cgit v1.2.3-70-g09d2