2 Subject: Patch 7.2.088 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: OpenClipboard() may fail when another application is using the
13 Solution: Retry OpenClipboard() a few times. (Jianrong Yu)
17 *** ../vim-7.2.087/src/os_mswin.c Thu Nov 20 17:09:09 2008
18 --- src/os_mswin.c Thu Jan 22 18:38:12 2009
22 #endif /* FEAT_MBYTE */
25 + * Wait for another process to Close the Clipboard.
26 + * Returns TRUE for success.
29 + vim_open_clipboard()
33 + while (!OpenClipboard(NULL))
36 + return FALSE; /* waited too long, give up */
38 + delay *= 2; /* wait for 10, 20, 40, 80, etc. msec */
44 * Get the current selection and put it in the clipboard register.
46 * NOTE: Must use GlobalLock/Unlock here to ensure Win32s compatibility.
49 * Don't pass GetActiveWindow() as an argument to OpenClipboard() because
50 * then we can't paste back into the same window for some reason - webb.
52 ! if (!OpenClipboard(NULL))
55 /* Check for vim's own clipboard format first. This only gets the type of
57 * Don't pass GetActiveWindow() as an argument to OpenClipboard() because
58 * then we can't paste back into the same window for some reason - webb.
60 ! if (!vim_open_clipboard())
63 /* Check for vim's own clipboard format first. This only gets the type of
66 * because then we can't paste back into the same window for some
69 ! if (OpenClipboard(NULL))
74 * because then we can't paste back into the same window for some
77 ! if (vim_open_clipboard())
81 *** ../vim-7.2.087/src/version.c Thu Jan 22 21:31:24 2009
82 --- src/version.c Thu Jan 22 21:47:52 2009
86 { /* Add new patch number below this line */
92 hundred-and-one symptoms of being an internet addict:
93 22. You've already visited all the links at Yahoo and you're halfway through
96 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
97 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
98 \\\ download, build and distribute -- http://www.A-A-P.org ///
99 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///