patch 9.0.0657: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the +cmdwin feature. Now the tiny and small builds are
equal, drop the small build. (Martin Tournoij, closes #11268)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index a5eae8d..3c13b8d 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -2739,12 +2739,11 @@
if (buf != curbuf)
{
bufref_T save_au_new_curbuf;
-#ifdef FEAT_CMDWIN
int save_cmdwin_type = cmdwin_type;
// BufLeave applies to the old buffer.
cmdwin_type = 0;
-#endif
+
/*
* Be careful: The autocommands may delete any buffer and change
* the current buffer.
@@ -2760,9 +2759,7 @@
save_au_new_curbuf = au_new_curbuf;
set_bufref(&au_new_curbuf, buf);
apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf);
-#ifdef FEAT_CMDWIN
cmdwin_type = save_cmdwin_type;
-#endif
if (!bufref_valid(&au_new_curbuf))
{
// new buffer has been deleted