summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-02-26 14:56:42 +0100
committerBram Moolenaar <Bram@vim.org>2013-02-26 14:56:42 +0100
commit693e40c2cdb65f19febde5664633ac465931cc63 (patch)
tree3c4ece28adb6806f3809f954ea134cd759b54ee5 /src/os_win32.c
parent53eb37e9f9dfba51092f72553d79d3bb677a336b (diff)
downloadvim-git-693e40c2cdb65f19febde5664633ac465931cc63.tar.gz
updated for version 7.3.836v7.3.836
Problem: Clipboard does not work on Win32 when compiled with Cygwin. Solution: Move the Win32 clipboard code to a separate file and use it when building with os_unix.c. (Frodak Baksik, Ken Takata)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index ef0b6cc0b..f5a3a5707 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1851,16 +1851,7 @@ mch_init(void)
set_option_value((char_u *)"grepprg", 0, (char_u *)"grep -n", 0);
#ifdef FEAT_CLIPBOARD
- clip_init(TRUE);
-
- /*
- * 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
- * character to specify MCHAR, MLINE or MBLOCK.
- */
- clip_star.format = RegisterClipboardFormat("VimClipboard2");
- clip_star.format_raw = RegisterClipboardFormat("VimRawBytes");
+ win_clip_init();
#endif
}
@@ -2345,16 +2336,7 @@ mch_init(void)
#endif
#ifdef FEAT_CLIPBOARD
- clip_init(TRUE);
-
- /*
- * 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
- * character to specify MCHAR, MLINE or MBLOCK.
- */
- clip_star.format = RegisterClipboardFormat("VimClipboard2");
- clip_star.format_raw = RegisterClipboardFormat("VimRawBytes");
+ win_clip_init();
#endif
/* This will be NULL on anything but NT 4.0 */