Mercurial > vim
diff src/winclip.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 | 15539899a112 |
line wrap: on
line diff
--- a/src/winclip.c +++ b/src/winclip.c @@ -191,7 +191,7 @@ win_clip_init(void) /* * Vim's own clipboard format recognises whether the text is char, line, * or rectangular block. Only useful for copying between two Vims. - * "VimClipboard" was used for previous versions, using the first + * "Clipboard_T" was used for previous versions, using the first * character to specify MCHAR, MLINE or MBLOCK. */ clip_star.format = RegisterClipboardFormat("VimClipboard2"); @@ -212,7 +212,7 @@ typedef struct * Make vim the owner of the current selection. Return OK upon success. */ int -clip_mch_own_selection(VimClipboard *cbd UNUSED) +clip_mch_own_selection(Clipboard_T *cbd UNUSED) { /* * Never actually own the clipboard. If another application sets the @@ -225,7 +225,7 @@ clip_mch_own_selection(VimClipboard *cbd * Make vim NOT the owner of the current selection. */ void -clip_mch_lose_selection(VimClipboard *cbd UNUSED) +clip_mch_lose_selection(Clipboard_T *cbd UNUSED) { /* Nothing needs to be done here */ } @@ -293,7 +293,7 @@ vim_open_clipboard(void) * <VN> */ void -clip_mch_request_selection(VimClipboard *cbd) +clip_mch_request_selection(Clipboard_T *cbd) { VimClipType_t metadata = { -1, -1, -1, -1 }; HGLOBAL hMem = NULL; @@ -453,7 +453,7 @@ clip_mch_request_selection(VimClipboard * Send the current selection to the clipboard. */ void -clip_mch_set_selection(VimClipboard *cbd) +clip_mch_set_selection(Clipboard_T *cbd) { char_u *str = NULL; VimClipType_t metadata;