Skip to content

Commit cef9e23

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 4005cc7 + b681be1 commit cef9e23

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/eval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12793,7 +12793,7 @@ f_getmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
1279312793
dict_add_nr_str(dict, "group", 0L, syn_id2name(cur->hlg_id));
1279412794
dict_add_nr_str(dict, "priority", (long)cur->priority, NULL);
1279512795
dict_add_nr_str(dict, "id", (long)cur->id, NULL);
12796-
# ifdef FEAT_CONCEAL
12796+
# if defined(FEAT_CONCEAL) && defined(FEAT_MBYTE)
1279712797
if (cur->conceal_char)
1279812798
{
1279912799
char_u buf[MB_MAXBYTES + 1];

src/syntax.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,9 @@ syntax_start(win_T *wp, linenr_T lnum)
509509
* Also do this when a change was made, the current state may be invalid
510510
* then.
511511
*/
512-
if (syn_block != wp->w_s || changedtick != syn_buf->b_changedtick)
512+
if (syn_block != wp->w_s
513+
|| syn_buf != wp->w_buffer
514+
|| changedtick != syn_buf->b_changedtick)
513515
{
514516
invalidate_current_state();
515517
syn_buf = wp->w_buffer;

src/version.c

+4
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,10 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
1691,
768+
/**/
769+
1690,
766770
/**/
767771
1689,
768772
/**/

src/window.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6756,11 +6756,11 @@ match_add(
67566756
m->match.regprog = regprog;
67576757
m->match.rmm_ic = FALSE;
67586758
m->match.rmm_maxcol = 0;
6759-
#ifdef FEAT_CONCEAL
6759+
# if defined(FEAT_CONCEAL) && defined(FEAT_MBYTE)
67606760
m->conceal_char = 0;
67616761
if (conceal_char != NULL)
67626762
m->conceal_char = (*mb_ptr2char)(conceal_char);
6763-
#endif
6763+
# endif
67646764

67656765
/* Set up position matches */
67666766
if (pos_list != NULL)

0 commit comments

Comments
 (0)