forked from aniani/vim
patch 7.4.841
Problem: Can't compile without the multi-byte feature. (John Marriott) Solution: Add more #ifdef's.
This commit is contained in:
12
src/option.c
12
src/option.c
@@ -3652,13 +3652,19 @@ set_options_default(opt_flags)
|
|||||||
|
|
||||||
for (i = 0; !istermoption(&options[i]); i++)
|
for (i = 0; !istermoption(&options[i]); i++)
|
||||||
if (!(options[i].flags & P_NODEFAULT)
|
if (!(options[i].flags & P_NODEFAULT)
|
||||||
|
#if defined(FEAT_MBYTE) || defined(FEAT_CRYPT)
|
||||||
&& (opt_flags == 0
|
&& (opt_flags == 0
|
||||||
|| (options[i].var != (char_u *)&p_enc
|
|| (TRUE
|
||||||
#if defined(FEAT_CRYPT)
|
# if defined(FEAT_MBYTE)
|
||||||
|
&& options[i].var != (char_u *)&p_enc
|
||||||
|
# endif
|
||||||
|
# if defined(FEAT_CRYPT)
|
||||||
&& options[i].var != (char_u *)&p_cm
|
&& options[i].var != (char_u *)&p_cm
|
||||||
&& options[i].var != (char_u *)&p_key
|
&& options[i].var != (char_u *)&p_key
|
||||||
|
# endif
|
||||||
|
))
|
||||||
#endif
|
#endif
|
||||||
)))
|
)
|
||||||
set_option_default(i, opt_flags, p_cp);
|
set_option_default(i, opt_flags, p_cp);
|
||||||
|
|
||||||
#ifdef FEAT_WINDOWS
|
#ifdef FEAT_WINDOWS
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
841,
|
||||||
/**/
|
/**/
|
||||||
840,
|
840,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user