patch 8.1.2078: build error with +textprop but without +terminal
Problem: Build error with +textprop but without +terminal. (Tony Mechelynck)
Solution: Add #ifdef.
diff --git a/src/popupwin.c b/src/popupwin.c
index 5425d09..d4b3d7c 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -1638,11 +1638,13 @@
semsg(_(e_nobufnr), argvars[0].vval.v_number);
return NULL;
}
+#ifdef FEAT_TERMINAL
if (buf->b_term != NULL)
{
emsg(_("E278: Cannot put a terminal buffer in a popup window"));
return NULL;
}
+#endif
}
else if (!(argvars[0].v_type == VAR_STRING
&& argvars[0].vval.v_string != NULL)