mirror of
https://github.com/jarun/nnn.git
synced 2025-03-31 18:46:33 +00:00
Add check for empty selection
nop when empty
This commit is contained in:
parent
7e307bc2ff
commit
a27568824e
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue