patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Problem: balloon_show() only works in terminal when compiled with the GUI.
Solution: Add FEAT_BEVAL_GUI and refactor to move common code out of the GUI
specific file.
diff --git a/src/option.h b/src/option.h
index 2084517..d963c1f 100644
--- a/src/option.h
+++ b/src/option.h
@@ -376,15 +376,17 @@
EXTERN char_u *p_cm; /* 'cryptmethod' */
#endif
#ifdef FEAT_BEVAL
-EXTERN long p_bdlay; /* 'balloondelay' */
+# ifdef FEAT_BEVAL_GUI
EXTERN int p_beval; /* 'ballooneval' */
+# endif
+EXTERN long p_bdlay; /* 'balloondelay' */
# ifdef FEAT_EVAL
EXTERN char_u *p_bexpr;
# endif
-#endif
-# ifdef FEAT_BEVALTERM
+# ifdef FEAT_BEVAL_TERM
EXTERN int p_bevalterm; /* 'balloonevalterm' */
# endif
+#endif
#ifdef FEAT_BROWSE
EXTERN char_u *p_bsdir; /* 'browsedir' */
#endif