From e901615fcc0cfaa37f26a08826156b4dc7bb4c67 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 4 Mar 2021 23:55:41 +0530 Subject: [PATCH] Add check for non-empty selection buffer --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index a8e9a9fd..365668ef 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2088,7 +2088,7 @@ static bool cpmvrm_selection(enum action sel, char *path) { int r; - if (isselfileempty()) { + if (!selbufpos && isselfileempty()) { printmsg(messages[MSG_0_SELECTED]); return FALSE; }