From: Arun Prakash Jana Date: Thu, 4 Mar 2021 18:25:41 +0000 (+0530) Subject: Add check for non-empty selection buffer X-Git-Tag: v3.6~9 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e901615fcc0cfaa37f26a08826156b4dc7bb4c67;p=nnn.git Add check for non-empty selection buffer --- 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; }