summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-25 15:20:02 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-25 15:20:02 +0100
commit6315a9ae924d2104b61d1667ea71af3ac7cf48fa (patch)
treede56592e8f6642707a93414b79c66586faea052d /src/structs.h
parent291a9d15ed1eb1094edc8ad6dda00a6da3bd7072 (diff)
downloadvim-git-6315a9ae924d2104b61d1667ea71af3ac7cf48fa.tar.gz
patch 8.0.1336: cannot use imactivatefunc() unless compiled with +ximv8.0.1336
Problem: Cannot use imactivatefunc() unless compiled with +xim. Solution: Allow using imactivatefunc() when not compiled with +xim. (Yasuhiro Matsumoto, closes #2349)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/structs.h b/src/structs.h
index 774104cf5..6aaccc511 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -2091,12 +2091,8 @@ struct file_buffer
#define B_IMODE_USE_INSERT -1 /* Use b_p_iminsert value for search */
#define B_IMODE_NONE 0 /* Input via none */
#define B_IMODE_LMAP 1 /* Input via langmap */
-#ifndef USE_IM_CONTROL
-# define B_IMODE_LAST 1
-#else
-# define B_IMODE_IM 2 /* Input via input method */
-# define B_IMODE_LAST 2
-#endif
+#define B_IMODE_IM 2 /* Input via input method */
+#define B_IMODE_LAST 2
#ifdef FEAT_KEYMAP
short b_kmap_state; /* using "lmap" mappings */