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

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;