diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-18 22:13:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-18 22:13:31 +0100 |
commit | c3719bd87beca9f72d2e9f11e36d561c2c3b57b0 (patch) | |
tree | 2ca909ca8d4a040e48cc484b2ae7512014d3eaf0 /src/feature.h | |
parent | c7d16dce2f180c8ebfc8105ad090b0ea2deedcdc (diff) |
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUIv8.0.1312
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.
Diffstat (limited to 'src/feature.h')
-rw-r--r-- | src/feature.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/feature.h b/src/feature.h index f17a5c1674..6bc56c2cd0 100644 --- a/src/feature.h +++ b/src/feature.h @@ -1317,22 +1317,26 @@ && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)) \ || defined(FEAT_SUN_WORKSHOP) \ || defined(FEAT_NETBEANS_INTG) || defined(FEAT_EVAL)) -# define FEAT_BEVAL +# define FEAT_BEVAL_GUI # if !defined(FEAT_XFONTSET) && !defined(FEAT_GUI_GTK) \ && !defined(FEAT_GUI_W32) # define FEAT_XFONTSET # endif #endif -#if defined(FEAT_BEVAL) && (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA)) +#if defined(FEAT_BEVAL_GUI) && (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA)) # define FEAT_BEVAL_TIP /* balloon eval used for toolbar tooltip */ #endif /* * +balloon_eval_term Allow balloon expression evaluation in the terminal. */ -#if defined(FEAT_BEVAL) && defined(UNIX) && defined(FEAT_TIMERS) -# define FEAT_BEVALTERM +#if defined(FEAT_HUGE) && defined(UNIX) && defined(FEAT_TIMERS) +# define FEAT_BEVAL_TERM +#endif + +#if defined(FEAT_BEVAL_GUI) || defined(FEAT_BEVAL_TERM) +# define FEAT_BEVAL #endif /* both Motif and Athena are X11 and share some code */ |