mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
clipboard: missing return NULL
when provider not available
This commit is contained in:
parent
5e67f0b5b1
commit
8c25ad6cf5
@ -5317,6 +5317,7 @@ static struct yankreg* adjust_clipboard_name(int *name, bool quiet, bool writing
|
||||
if (!quiet) {
|
||||
EMSG("clipboard: provider is not available");
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
return &y_regs[*name == '*' ? STAR_REGISTER : PLUS_REGISTER];
|
||||
} else if ((*name == NUL) && (cb_flags & CB_UNNAMEDMASK)) {
|
||||
|
Loading…
Reference in New Issue
Block a user