Skip to content

Commit 6e35a11

Browse files
committed
patch 8.0.1567: cannot build Win32 GUI without IME
Problem: Cannot build Win32 GUI without IME. (John Marriott) Solution: Adjust when IME_WITHOUT_XIM and HAVE_INPUT_METHOD are defined and use it in a few more places.
1 parent 8a3bb56 commit 6e35a11

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/gui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ gui_update_cursor(
10771077
gui_undraw_cursor();
10781078
if (gui.row < 0)
10791079
return;
1080-
#ifdef FEAT_MBYTE
1080+
#ifdef HAVE_INPUT_METHOD
10811081
if (gui.row != gui.cursor_row || gui.col != gui.cursor_col)
10821082
im_set_position(gui.row, gui.col);
10831083
#endif
@@ -1135,7 +1135,7 @@ gui_update_cursor(
11351135
if (id > 0)
11361136
{
11371137
cattr = syn_id2colors(id, &cfg, &cbg);
1138-
#if defined(FEAT_MBYTE) || defined(FEAT_HANGULIN)
1138+
#if defined(HAVE_INPUT_METHOD) || defined(FEAT_HANGULIN)
11391139
{
11401140
static int iid;
11411141
guicolor_T fg, bg;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1567,
769771
/**/
770772
1566,
771773
/**/

src/vim.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,18 +2118,16 @@ typedef enum {
21182118
# define USE_MCH_ERRMSG
21192119
#endif
21202120

2121-
# if (defined(FEAT_MBYTE_IME) \
2122-
&& (!defined(FEAT_GUI_W32) \
2123-
|| !(defined(FEAT_MBYTE_IME) || defined(GLOBAL_IME)))) \
2124-
|| (defined(MACOS_CONVERT) && !defined(FEAT_GUI_MAC))
2125-
/* Whether IME is supported when XIM is not used, im_get_status() is defined in
2126-
* mbyte.c. */
2121+
# if defined(FEAT_MBYTE) && defined(FEAT_EVAL) \
2122+
&& ((!defined(FEAT_GUI_W32) \
2123+
|| !(defined(FEAT_MBYTE_IME) || defined(GLOBAL_IME))) \
2124+
|| (defined(MACOS_CONVERT) && !defined(FEAT_GUI_MAC)))
2125+
/* Whether IME is supported by im_get_status() defined in mbyte.c. */
21272126
# define IME_WITHOUT_XIM
21282127
#endif
21292128

21302129
#if defined(FEAT_MBYTE) && (defined(FEAT_XIM) \
21312130
|| defined(IME_WITHOUT_XIM) \
2132-
|| defined(FEAT_GUI_W32) \
21332131
|| defined(FEAT_GUI_MAC))
21342132
/* im_set_active() is available */
21352133
# define HAVE_INPUT_METHOD

0 commit comments

Comments
 (0)