Skip to content

Commit 4235615

Browse files
committed
patch 7.4.1690
Problem: Can't compile with the conceal feature but without multi-byte. Solution: Adjust #ifdef. (Owen Leibman)
1 parent 758535a commit 4235615

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12786,7 +12786,7 @@ f_getmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
1278612786
dict_add_nr_str(dict, "group", 0L, syn_id2name(cur->hlg_id));
1278712787
dict_add_nr_str(dict, "priority", (long)cur->priority, NULL);
1278812788
dict_add_nr_str(dict, "id", (long)cur->id, NULL);
12789-
# ifdef FEAT_CONCEAL
12789+
# if defined(FEAT_CONCEAL) && defined(FEAT_MBYTE)
1279012790
if (cur->conceal_char)
1279112791
{
1279212792
char_u buf[MB_MAXBYTES + 1];

src/version.c

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

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1690,
751753
/**/
752754
1689,
753755
/**/

src/window.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6746,11 +6746,11 @@ match_add(
67466746
m->match.regprog = regprog;
67476747
m->match.rmm_ic = FALSE;
67486748
m->match.rmm_maxcol = 0;
6749-
#ifdef FEAT_CONCEAL
6749+
# if defined(FEAT_CONCEAL) && defined(FEAT_MBYTE)
67506750
m->conceal_char = 0;
67516751
if (conceal_char != NULL)
67526752
m->conceal_char = (*mb_ptr2char)(conceal_char);
6753-
#endif
6753+
# endif
67546754

67556755
/* Set up position matches */
67566756
if (pos_list != NULL)

0 commit comments

Comments
 (0)