summaryrefslogtreecommitdiffstats
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-29 23:15:25 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-29 23:15:25 +0100
commit310c32e8920140f0db747c6c6eb06b1ee53cdb5a (patch)
tree6a63306e6627614a8f3b9b543f129323f3093f86 /src/gui_w32.c
parent15a7bdcb77faabbd3a9a889957f810da2bcda13e (diff)
patch 8.1.2361: MS-Windows: test failures related to VIMDLLv8.1.2361
Problem: MS-Windows: test failures related to VIMDLL. Solution: Adjust code and tests. (Ken Takata, closes #5283)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 429b4570d1..d5dfeff685 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -5746,6 +5746,14 @@ im_set_active(int active)
HIMC hImc;
static HIMC hImcOld = (HIMC)0;
+# ifdef VIMDLL
+ if (!gui.in_use && !gui.starting)
+ {
+ mbyte_im_set_active(active);
+ return;
+ }
+# endif
+
if (pImmGetContext) /* if NULL imm32.dll wasn't loaded (yet) */
{
if (p_imdisable)
@@ -5815,6 +5823,11 @@ im_get_status(void)
int status = 0;
HIMC hImc;
+# ifdef VIMDLL
+ if (!gui.in_use && !gui.starting)
+ return mbyte_im_get_status();
+# endif
+
if (pImmGetContext && (hImc = pImmGetContext(s_hwnd)) != (HIMC)0)
{
status = pImmGetOpenStatus(hImc) ? 1 : 0;