diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-24 21:42:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-24 21:42:01 +0100 |
commit | 45fffdf10b7cb6e59794e76e9b8a2930fcb4b192 (patch) | |
tree | 9615bfdb0787577637e8d25b4049a31de10e52cd /src/proto/register.pro | |
parent | 71658f74ae64c366b2d35b82c0a2eadb1317f028 (diff) | |
download | vim-git-45fffdf10b7cb6e59794e76e9b8a2930fcb4b192.tar.gz |
patch 8.2.0443: clipboard code is spread outv8.2.0443
Problem: Clipboard code is spread out.
Solution: Move clipboard code to its own file. (Yegappan Lakshmanan,
closes #5827)
Diffstat (limited to 'src/proto/register.pro')
-rw-r--r-- | src/proto/register.pro | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/proto/register.pro b/src/proto/register.pro index 743e4d645..6ad4e4971 100644 --- a/src/proto/register.pro +++ b/src/proto/register.pro @@ -1,14 +1,15 @@ /* register.c */ yankreg_T *get_y_regs(void); +yankreg_T *get_y_register(int reg); yankreg_T *get_y_current(void); yankreg_T *get_y_previous(void); +void set_y_current(yankreg_T *yreg); void set_y_previous(yankreg_T *yreg); int get_expr_register(void); void set_expr_line(char_u *new_line); char_u *get_expr_line(void); int valid_yank_reg(int regname, int writing); int get_yank_register(int regname, int writing); -int may_get_selection(int regname); void *get_register(int name, int copy); void put_register(int name, void *reg); void free_register(void *reg); @@ -20,23 +21,20 @@ int do_execreg(int regname, int colon, int addcr, int silent); int insert_reg(int regname, int literally_arg); int get_spec_reg(int regname, char_u **argp, int *allocated, int errmsg); int cmdline_paste_reg(int regname, int literally_arg, int remcr); -void adjust_clip_reg(int *rp); void shift_delete_registers(void); void yank_do_autocmd(oparg_T *oap, yankreg_T *reg); void init_yank(void); void clear_registers(void); +void free_yank_all(void); int op_yank(oparg_T *oap, int deleting, int mess); void do_put(int regname, int dir, long count, int flags); int get_register_name(int num); void ex_display(exarg_T *eap); -void clip_free_selection(Clipboard_T *cbd); -void clip_get_selection(Clipboard_T *cbd); -void clip_yank_selection(int type, char_u *str, long len, Clipboard_T *cbd); -int clip_convert_selection(char_u **str, long_u *len, Clipboard_T *cbd); void dnd_yank_drag_data(char_u *str, long len); char_u get_reg_type(int regname, long *reglen); char_u *get_reg_contents(int regname, int flags); void write_reg_contents(int name, char_u *str, int maxlen, int must_append); void write_reg_contents_lst(int name, char_u **strings, int maxlen, int must_append, int yank_type, long block_len); void write_reg_contents_ex(int name, char_u *str, int maxlen, int must_append, int yank_type, long block_len); +void str_to_reg(yankreg_T *y_ptr, int yank_type, char_u *str, long len, long blocklen, int str_list); /* vim: set ft=c : */ |