Add check for empty selection

nop when empty
This commit is contained in:
KlzXS 2021-02-16 21:33:42 +00:00
parent 7e307bc2ff
commit a27568824e
No known key found for this signature in database
GPG Key ID: FF9B81B098D5BACA
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;