patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
diff --git a/src/version.c b/src/version.c
index 20a81f9..21ecc93 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,11 +667,7 @@
#else
"-user_commands",
#endif
-#ifdef FEAT_WINDOWS
"+vertsplit",
-#else
- "-vertsplit",
-#endif
#ifdef FEAT_VIRTUALEDIT
"+virtualedit",
#else
@@ -703,11 +699,7 @@
#else
"-wildmenu",
#endif
-#ifdef FEAT_WINDOWS
"+windows",
-#else
- "-windows",
-#endif
#ifdef FEAT_WRITEBACKUP
"+writebackup",
#else
@@ -770,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1118,
+/**/
1117,
/**/
1116,
@@ -3436,9 +3430,7 @@
{
if (BUFEMPTY()
&& curbuf->b_fname == NULL
-#ifdef FEAT_WINDOWS
&& firstwin->w_next == NULL
-#endif
&& vim_strchr(p_shm, SHM_INTRO) == NULL)
intro_message(FALSE);
}
@@ -3511,11 +3503,9 @@
if (!p_cp)
blanklines += 4; /* add 4 for not showing "Vi compatible" message */
-#ifdef FEAT_WINDOWS
/* Don't overwrite a statusline. Depends on 'cmdheight'. */
if (p_ls > 1)
blanklines -= Rows - topframe->fr_height;
-#endif
if (blanklines < 0)
blanklines = 0;