patch 8.0.0865: cannot build with channel but without terminal feature
Problem: Cannot build with channel but without terminal feature.
Solution: Add #ifdef
diff --git a/src/channel.c b/src/channel.c
index 801e370..9d791a9 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4391,6 +4391,7 @@
return FAIL;
}
}
+#ifdef FEAT_TERMINAL
else if (STRCMP(hi->hi_key, "term_name") == 0)
{
if (!(supported & JO2_TERM_NAME))
@@ -4403,6 +4404,7 @@
return FAIL;
}
}
+#endif
else if (STRCMP(hi->hi_key, "waittime") == 0)
{
if (!(supported & JO_WAITTIME))