Skip to content

Commit ccf5c05

Browse files
committed
Fixed merge and simplified ifdefs
1 parent d489631 commit ccf5c05

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

src/option.c

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,22 +1376,15 @@ static struct vimoption options[] =
13761376
{(char_u *)FALSE, (char_u *)0L}
13771377
#endif
13781378
SCRIPTID_INIT},
1379-
{"fullscreen", "fu", P_BOOL|P_NO_MKRC,
13801379
#ifdef FEAT_FULLSCREEN
1380+
{"fullscreen", "fu", P_BOOL|P_NO_MKRC,
13811381
(char_u *)&p_fullscreen, PV_NONE,
1382-
#else
1383-
(char_u *)NULL, PV_NONE,
1384-
#endif
13851382
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
13861383
{"fuoptions", "fuopt", P_STRING|P_COMMA|P_NODUP|P_VI_DEF,
1387-
#ifdef FEAT_FULLSCREEN
13881384
(char_u *)&p_fuoptions, PV_NONE,
13891385
{(char_u *)"maxvert,maxhorz", (char_u *)0L}
1390-
#else
1391-
(char_u *)NULL, PV_NONE,
1392-
{(char_u *)NULL, (char_u *)0L}
1393-
#endif
13941386
SCRIPTID_INIT},
1387+
#endif
13951388
{"gdefault", "gd", P_BOOL|P_VI_DEF|P_VIM,
13961389
(char_u *)&p_gd, PV_NONE,
13971390
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
@@ -1930,15 +1923,9 @@ static struct vimoption options[] =
19301923
{"macligatures", NULL, P_BOOL|P_VI_DEF|P_RCLR,
19311924
(char_u *)&p_macligatures, PV_NONE,
19321925
{(char_u *)FALSE, (char_u *)0L}},
1933-
#endif
19341926
{"macmeta", "mmta", P_BOOL|P_VI_DEF,
1935-
#ifdef FEAT_GUI_MACVIM
19361927
(char_u *)&p_mmta, PV_MMTA,
1937-
#else
1938-
(char_u *)NULL, PV_NONE,
1939-
#endif
19401928
{(char_u *)FALSE, (char_u *)0L}},
1941-
#ifdef FEAT_GUI_MACVIM
19421929
{"macthinstrokes", NULL, P_BOOL|P_VI_DEF|P_RCLR,
19431930
(char_u *)&p_macthinstrokes, PV_NONE,
19441931
{(char_u *)FALSE, (char_u *)0L}},
@@ -2295,27 +2282,25 @@ static struct vimoption options[] =
22952282
#else
22962283
(char_u *)NULL, PV_NONE,
22972284
{(char_u *)NULL, (char_u *)0L}
2285+
#endif
22982286
SCRIPTID_INIT},
22992287
{"pythonthreehome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
23002288
(char_u *)&p_py3home, PV_NONE,
23012289
{(char_u *)"", (char_u *)0L}
23022290
SCRIPTID_INIT},
2303-
#endif
2304-
SCRIPTID_INIT},
23052291
{"pythondll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
23062292
#if defined(DYNAMIC_PYTHON)
23072293
(char_u *)&p_pydll, PV_NONE,
23082294
{(char_u *)DYNAMIC_PYTHON_DLL, (char_u *)0L}
23092295
#else
23102296
(char_u *)NULL, PV_NONE,
23112297
{(char_u *)NULL, (char_u *)0L}
2298+
#endif
23122299
SCRIPTID_INIT},
23132300
{"pythonhome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
23142301
(char_u *)&p_pyhome, PV_NONE,
23152302
{(char_u *)"", (char_u *)0L}
23162303
SCRIPTID_INIT},
2317-
#endif
2318-
SCRIPTID_INIT},
23192304
{"pyxversion", "pyx", P_NUM|P_VI_DEF|P_SECURE,
23202305
#if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3)
23212306
(char_u *)&p_pyx, PV_NONE,
@@ -2905,23 +2890,20 @@ static struct vimoption options[] =
29052890
{(char_u *)0L, (char_u *)0L}
29062891
#endif
29072892
SCRIPTID_INIT},
2908-
#if defined(FEAT_TOOLBAR) && (defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MACVIM))
29092893
{"toolbariconsize", "tbis", P_STRING|P_VI_DEF,
2910-
#if defined(FEAT_TOOLBAR) && defined(FEAT_GUI_GTK)
2894+
#if defined(FEAT_TOOLBAR) && (defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MACVIM))
29112895
(char_u *)&p_tbis, PV_NONE,
29122896
{(char_u *)"small", (char_u *)0L}
29132897
#else
29142898
(char_u *)NULL, PV_NONE,
29152899
{(char_u *)0L, (char_u *)0L}
29162900
#endif
29172901
SCRIPTID_INIT},
2918-
{"transparency", "transp", P_NUM|P_VIM|P_RCLR,
29192902
#ifdef FEAT_TRANSPARENCY
2903+
{"transparency", "transp", P_NUM|P_VIM|P_RCLR,
29202904
(char_u *)&p_transp, PV_NONE,
2921-
#else
2922-
(char_u *)NULL, PV_NONE,
2923-
#endif
29242905
{(char_u *)0L, (char_u *)0L} },
2906+
#endif
29252907
{"ttimeout", NULL, P_BOOL|P_VI_DEF|P_VIM,
29262908
(char_u *)&p_ttimeout, PV_NONE,
29272909
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},

0 commit comments

Comments
 (0)