summaryrefslogtreecommitdiff
path: root/src/if_ole.cpp
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-01-28 13:18:26 +0000
committerBram Moolenaar <Bram@vim.org>2009-01-28 13:18:26 +0000
commit370feaf87f8f92627f97bb024d95832ce885a085 (patch)
tree9ee2953e6c0f6c88bf43f263175f0719a9a52ade /src/if_ole.cpp
parent282937bc563e7e8387e28f896bf49b6622384265 (diff)
downloadvim-git-370feaf87f8f92627f97bb024d95832ce885a085.tar.gz
updated for version 7.2-089v7.2.089
Diffstat (limited to 'src/if_ole.cpp')
-rw-r--r--src/if_ole.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/if_ole.cpp b/src/if_ole.cpp
index b2057f973..fc3077dfe 100644
--- a/src/if_ole.cpp
+++ b/src/if_ole.cpp
@@ -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;
}