nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 42061b0399008f0ae7a2863e8a8e0e0465c41d62
parent b2c99b9e4e54a3ed1b61fbc6503f3acb61d75297
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu, 12 Aug 2021 00:20:13 +0530

Fail operations if selection file is empty

Diffstat:
Msrc/nnn.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2541,7 +2541,9 @@ static bool cpmvrm_selection(enum action sel, char *path) { int r; - if (!selbufpos && isselfileempty()) { + if (isselfileempty()) { + if (nselected) + clearselection(); printmsg(messages[MSG_0_SELECTED]); return FALSE; }