mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.2-089
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user