mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +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