mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 11:11:33 +00:00
Fail operations if selection file is empty
This commit is contained in:
parent
b2c99b9e4e
commit
42061b0399
1 changed files with 3 additions and 1 deletions
|
@ -2541,7 +2541,9 @@ static bool cpmvrm_selection(enum action sel, char *path)
|
|||
{
|
||||
int r;
|
||||
|
||||
if (!selbufpos && isselfileempty()) {
|
||||
if (isselfileempty()) {
|
||||
if (nselected)
|
||||
clearselection();
|
||||
printmsg(messages[MSG_0_SELECTED]);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue