mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.2-089
This commit is contained in:
parent
282937bc56
commit
370feaf87f
@ -1663,8 +1663,17 @@ process_message(void)
|
||||
if (msg.message == WM_OLE)
|
||||
{
|
||||
char_u *str = (char_u *)msg.lParam;
|
||||
add_to_input_buf(str, (int)STRLEN(str));
|
||||
vim_free(str);
|
||||
if (str == NULL || *str == NUL)
|
||||
{
|
||||
/* Message can't be ours, forward it. Fixes problem with Ultramon
|
||||
* 3.0.4 */
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
add_to_input_buf(str, (int)STRLEN(str));
|
||||
vim_free(str); /* was allocated in CVim::SendKeys() */
|
||||
}
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -353,9 +353,13 @@ CVim::SendKeys(BSTR keys)
|
||||
}
|
||||
|
||||
/* Pass the string to the main input loop. The memory will be freed when
|
||||
* the message is processed.
|
||||
* the message is processed. Except for an empty message, we don't need
|
||||
* to post it then.
|
||||
*/
|
||||
PostMessage(NULL, WM_OLE, 0, (LPARAM)str);
|
||||
if (*str == NUL)
|
||||
vim_free(str);
|
||||
else
|
||||
PostMessage(NULL, WM_OLE, 0, (LPARAM)str);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -676,6 +676,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
89,
|
||||
/**/
|
||||
88,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user