mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
ops: Remove FUNC_ATTR_MALLOC from copy_register
Returned storage has a pointer to a newly allocated array.
This commit is contained in:
@@ -802,7 +802,6 @@ static bool is_append_register(int regname)
|
|||||||
/// Returns a copy of contents in register `name`
|
/// Returns a copy of contents in register `name`
|
||||||
/// for use in do_put. Should be freed by caller.
|
/// for use in do_put. Should be freed by caller.
|
||||||
yankreg_T *copy_register(int name)
|
yankreg_T *copy_register(int name)
|
||||||
FUNC_ATTR_MALLOC
|
|
||||||
FUNC_ATTR_NONNULL_RET
|
FUNC_ATTR_NONNULL_RET
|
||||||
{
|
{
|
||||||
yankreg_T *reg = get_yank_register(name, YREG_PASTE);
|
yankreg_T *reg = get_yank_register(name, YREG_PASTE);
|
||||||
|
Reference in New Issue
Block a user