Browse Source
Merge pull request #856 from KlzXS/cpmvrm
Add check for empty selection
master
Mischievous Meerkat
GitHub
3 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/nnn.c
|
|
@@ -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; |
|
|
|
|
|
|
|