# HG changeset patch # User Bram Moolenaar # Date 1439413018 -7200 # Node ID 962b3ae252a98b0ee205a2297c19b2417dd9717a # Parent 349e6c01f35d00f6035aec42fc43d02173eb00cc patch 7.4.824 Problem: Can't compile without the multi-byte feature. (John Marriott) Solution: Add #ifdef. diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -17046,13 +17046,16 @@ f_setcharsearch(argvars, rettv) csearch = get_dict_string(d, (char_u *)"char", FALSE); if (csearch != NULL) { +#ifdef FEAT_MBYTE if (enc_utf8) { int pcc[MAX_MCO]; int c = utfc_ptr2char(csearch, pcc); + set_last_csearch(c, csearch, utfc_ptr2len(csearch)); } else +#endif set_last_csearch(mb_ptr2char(csearch), csearch, mb_ptr2len(csearch)); } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 824, +/**/ 823, /**/ 822,