summaryrefslogtreecommitdiffstats
path: root/src/gui_mac.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-25 17:14:33 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-25 17:14:33 +0100
commit819edbe078c8579f3620d12dac830f12ccdc5a45 (patch)
tree9aeaacf944c52f62fb2caaed49c8319746e3dae6 /src/gui_mac.c
parent50d43153a7e3e452cd166cde0d84ecacd316321f (diff)
patch 8.0.1338: USE_IM_CONTROL is confusing and incompletev8.0.1338
Problem: USE_IM_CONTROL is confusing and incomplete. Solution: Just use FEAT_MBYTE. Call 'imactivatefunc' also without GUI.
Diffstat (limited to 'src/gui_mac.c')
-rw-r--r--src/gui_mac.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c
index 93feabe926..97cbf8018e 100644
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -2024,15 +2024,15 @@ gui_mac_handle_window_activate(
switch (eventKind)
{
case kEventWindowActivated:
-#if defined(USE_IM_CONTROL)
+# if defined(FEAT_MBYTE)
im_on_window_switch(TRUE);
-#endif
+# endif
return noErr;
case kEventWindowDeactivated:
-#if defined(USE_IM_CONTROL)
+# if defined(FEAT_MBYTE)
im_on_window_switch(FALSE);
-#endif
+# endif
return noErr;
}
}
@@ -6230,7 +6230,7 @@ char_u *FullPathFromFSSpec_save(FSSpec file)
#endif
}
-#if (defined(USE_IM_CONTROL) || defined(PROTO)) && defined(USE_CARBONKEYHANDLER)
+#if (defined(FEAT_MBYTE) || defined(PROTO)) && defined(USE_CARBONKEYHANDLER)
/*
* Input Method Control functions.
*/
@@ -6317,7 +6317,7 @@ im_set_active(int active)
ScriptLanguageRecord *slptr = NULL;
OSStatus err;
- if (! gui.in_use)
+ if (!gui.in_use)
return;
if (im_initialized == 0)
@@ -6379,7 +6379,7 @@ im_get_status(void)
return im_is_active;
}
-#endif /* defined(USE_IM_CONTROL) || defined(PROTO) */
+#endif /* defined(FEAT_MBYTE) || defined(PROTO) */