patch 8.1.1971: manually enabling features causes build errors
Problem: Manually enabling features causes build errors. (John Marriott)
Solution: Adjust #ifdefs.
diff --git a/src/ui.c b/src/ui.c
index a072359..1b700f1 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -3637,6 +3637,8 @@
|| defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MSWIN) \
|| defined(FEAT_GUI_PHOTON) || defined(FEAT_TERM_POPUP_MENU) \
|| defined(PROTO)
+# define NEED_VCOL2COL
+
/*
* Translate window coordinates to buffer position without any side effects
*/
@@ -3678,10 +3680,8 @@
}
#endif
-#if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MAC) \
- || defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MSWIN) \
- || defined(FEAT_GUI_PHOTON) || defined(FEAT_BEVAL) \
- || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO)
+#if defined(NEED_VCOL2COL) || defined(FEAT_BEVAL) || defined(FEAT_TEXT_PROP) \
+ || defined(PROTO)
/*
* Convert a virtual (screen) column to a character column.
* The first column is one.