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
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}