comparison src/ops.c @ 17063:3147c7c2e86b v8.1.1531

patch 8.1.1531: clipboard type name is inconsistent commit https://github.com/vim/vim/commit/0554fa478d27c611d23a814c987eb66f9daae6f7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 14 21:36:54 2019 +0200 patch 8.1.1531: clipboard type name is inconsistent Problem: Clipboard type name is inconsistent. Solution: Rename VimClipboard to Clipboard_T.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Jun 2019 21:45:06 +0200
parents ce04ebdf26b8
children 40c4cb095d53
comparison
equal deleted inserted replaced
17062:ee88967a2cd5 17063:3147c7c2e86b
6458 vim_free(str); 6458 vim_free(str);
6459 } 6459 }
6460 #endif 6460 #endif
6461 6461
6462 void 6462 void
6463 clip_free_selection(VimClipboard *cbd) 6463 clip_free_selection(Clipboard_T *cbd)
6464 { 6464 {
6465 yankreg_T *y_ptr = y_current; 6465 yankreg_T *y_ptr = y_current;
6466 6466
6467 if (cbd == &clip_plus) 6467 if (cbd == &clip_plus)
6468 y_current = &y_regs[PLUS_REGISTER]; 6468 y_current = &y_regs[PLUS_REGISTER];
6475 6475
6476 /* 6476 /*
6477 * Get the selected text and put it in register '*' or '+'. 6477 * Get the selected text and put it in register '*' or '+'.
6478 */ 6478 */
6479 void 6479 void
6480 clip_get_selection(VimClipboard *cbd) 6480 clip_get_selection(Clipboard_T *cbd)
6481 { 6481 {
6482 yankreg_T *old_y_previous, *old_y_current; 6482 yankreg_T *old_y_previous, *old_y_current;
6483 pos_T old_cursor; 6483 pos_T old_cursor;
6484 pos_T old_visual; 6484 pos_T old_visual;
6485 int old_visual_mode; 6485 int old_visual_mode;
6540 void 6540 void
6541 clip_yank_selection( 6541 clip_yank_selection(
6542 int type, 6542 int type,
6543 char_u *str, 6543 char_u *str,
6544 long len, 6544 long len,
6545 VimClipboard *cbd) 6545 Clipboard_T *cbd)
6546 { 6546 {
6547 yankreg_T *y_ptr; 6547 yankreg_T *y_ptr;
6548 6548
6549 if (cbd == &clip_plus) 6549 if (cbd == &clip_plus)
6550 y_ptr = &y_regs[PLUS_REGISTER]; 6550 y_ptr = &y_regs[PLUS_REGISTER];
6560 * Convert the '*'/'+' register into a GUI selection string returned in *str 6560 * Convert the '*'/'+' register into a GUI selection string returned in *str
6561 * with length *len. 6561 * with length *len.
6562 * Returns the motion type, or -1 for failure. 6562 * Returns the motion type, or -1 for failure.
6563 */ 6563 */
6564 int 6564 int
6565 clip_convert_selection(char_u **str, long_u *len, VimClipboard *cbd) 6565 clip_convert_selection(char_u **str, long_u *len, Clipboard_T *cbd)
6566 { 6566 {
6567 char_u *p; 6567 char_u *p;
6568 int lnum; 6568 int lnum;
6569 int i, j; 6569 int i, j;
6570 int_u eolsize; 6570 int_u eolsize;