mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Fail operations if selection file is empty
This commit is contained in:
parent
b2c99b9e4e
commit
42061b0399
|
@ -2541,7 +2541,9 @@ static bool cpmvrm_selection(enum action sel, char *path)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!selbufpos && isselfileempty()) {
|
if (isselfileempty()) {
|
||||||
|
if (nselected)
|
||||||
|
clearselection();
|
||||||
printmsg(messages[MSG_0_SELECTED]);
|
printmsg(messages[MSG_0_SELECTED]);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue