Skip to content

Commit 1355aad

Browse files
committed
patch 8.0.1350: cannot build with +eval and -multi_byte
Problem: Cannot build with +eval and -multi_byte. Solution: Adjust #ifdefs. (John Marriott) Always include the multi_byte feature when an input method feature is enabled.
1 parent 17471e8 commit 1355aad

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/feature.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@
635635
/* #define FEAT_MBYTE_IME */
636636
# endif
637637

638-
#if defined(FEAT_MBYTE_IME) && !defined(FEAT_MBYTE)
638+
/* Input methods are only useful with +multi_byte. */
639+
#if (defined(FEAT_MBYTE_IME) || defined(FEAT_XIM)) && !defined(FEAT_MBYTE)
639640
# define FEAT_MBYTE
640641
#endif
641642

src/mbyte.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4790,7 +4790,7 @@ iconv_end(void)
47904790
# define USE_IMSTATUSFUNC (*p_imsf != NUL)
47914791
#endif
47924792

4793-
#ifdef FEAT_EVAL
4793+
#if defined(FEAT_EVAL) && defined(FEAT_MBYTE)
47944794
static void
47954795
call_imactivatefunc(int active)
47964796
{
@@ -6486,7 +6486,7 @@ static int im_was_set_active = FALSE;
64866486
int
64876487
im_get_status()
64886488
{
6489-
# ifdef FEAT_EVAL
6489+
# if defined(FEAT_MBYTE) && defined(FEAT_EVAL)
64906490
if (USE_IMSTATUSFUNC)
64916491
return call_imstatusfunc();
64926492
# endif

src/version.c

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

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1350,
774776
/**/
775777
1349,
776778
/**/

0 commit comments

Comments
 (0)