0
0
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:
Bram Moolenaar
2009-01-28 13:18:26 +00:00
parent 282937bc56
commit 370feaf87f
3 changed files with 19 additions and 4 deletions

View File

@@ -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;
}