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

View file

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