Fail operations if selection file is empty

This commit is contained in:
Arun Prakash Jana 2021-08-12 00:20:13 +05:30
parent b2c99b9e4e
commit 42061b0399
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

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