mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
No OOM error condition in get_register() and yank_copy_line()
This commit is contained in:

committed by
Thiago de Arruda

parent
f298be9fe1
commit
5421f84443
@@ -1,5 +1,9 @@
|
||||
#ifndef NEOVIM_OPS_H
|
||||
#define NEOVIM_OPS_H
|
||||
|
||||
#include "func_attr.h"
|
||||
#include "types.h"
|
||||
|
||||
/* ops.c */
|
||||
int get_op_type(int char1, int char2);
|
||||
int op_on_lines(int op);
|
||||
@@ -15,7 +19,7 @@ char_u *get_expr_line_src(void);
|
||||
int valid_yank_reg(int regname, int writing);
|
||||
void get_yank_register(int regname, int writing);
|
||||
int may_get_selection(int regname);
|
||||
void *get_register(int name, int copy);
|
||||
void *get_register(int name, int copy) FUNC_ATTR_NONNULL_RET;
|
||||
void put_register(int name, void *reg);
|
||||
void free_register(void *reg);
|
||||
int yank_register_mline(int regname);
|
||||
|
Reference in New Issue
Block a user