forked from aniani/vim
patch 7.4.824
Problem: Can't compile without the multi-byte feature. (John Marriott) Solution: Add #ifdef.
This commit is contained in:
@@ -17046,13 +17046,16 @@ f_setcharsearch(argvars, rettv)
|
|||||||
csearch = get_dict_string(d, (char_u *)"char", FALSE);
|
csearch = get_dict_string(d, (char_u *)"char", FALSE);
|
||||||
if (csearch != NULL)
|
if (csearch != NULL)
|
||||||
{
|
{
|
||||||
|
#ifdef FEAT_MBYTE
|
||||||
if (enc_utf8)
|
if (enc_utf8)
|
||||||
{
|
{
|
||||||
int pcc[MAX_MCO];
|
int pcc[MAX_MCO];
|
||||||
int c = utfc_ptr2char(csearch, pcc);
|
int c = utfc_ptr2char(csearch, pcc);
|
||||||
|
|
||||||
set_last_csearch(c, csearch, utfc_ptr2len(csearch));
|
set_last_csearch(c, csearch, utfc_ptr2len(csearch));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
set_last_csearch(mb_ptr2char(csearch),
|
set_last_csearch(mb_ptr2char(csearch),
|
||||||
csearch, mb_ptr2len(csearch));
|
csearch, mb_ptr2len(csearch));
|
||||||
}
|
}
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
824,
|
||||||
/**/
|
/**/
|
||||||
823,
|
823,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user