Merge pull request #856 from KlzXS/cpmvrm

Add check for empty selection
This commit is contained in:
Mischievous Meerkat 2021-02-18 00:36:15 +05:30 committed by GitHub
commit 916910bd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -2084,6 +2084,11 @@ static bool cpmvrm_selection(enum action sel, char *path)
{
int r;
if (!selbufpos) {
printmsg(messages[MSG_0_SELECTED]);
return FALSE;
}
if (!selsafe())
return FALSE;