diff src/ui.c @ 17950:bb0e25a8b5d7 v8.1.1971

patch 8.1.1971: manually enabling features causes build errors Commit: https://github.com/vim/vim/commit/d570ab95d9ab0616f7d7cff59302617e612eae41 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 3 23:20:05 2019 +0200 patch 8.1.1971: manually enabling features causes build errors Problem: Manually enabling features causes build errors. (John Marriott) Solution: Adjust #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Tue, 03 Sep 2019 23:30:04 +0200
parents bdddd215bf09
children e273e489acdf
line wrap: on
line diff
--- a/src/ui.c
+++ b/src/ui.c
@@ -3637,6 +3637,8 @@ mouse_find_win(int *rowp, int *colp, mou
 	|| 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 @@ get_fpos_of_mouse(pos_T *mpos)
 }
 #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.