From: Arun Prakash Jana Date: Wed, 11 Aug 2021 18:50:13 +0000 (+0530) Subject: Fail operations if selection file is empty X-Git-Tag: v4.3~55 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=42061b0399008f0ae7a2863e8a8e0e0465c41d62;p=nnn.git Fail operations if selection file is empty --- diff --git a/src/nnn.c b/src/nnn.c index 0d58ca25..b7654280 100644 --- 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; }