summaryrefslogtreecommitdiffstats
path: root/src/workshop.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-18 22:13:31 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-18 22:13:31 +0100
commitc3719bd87beca9f72d2e9f11e36d561c2c3b57b0 (patch)
tree2ca909ca8d4a040e48cc484b2ae7512014d3eaf0 /src/workshop.c
parentc7d16dce2f180c8ebfc8105ad090b0ea2deedcdc (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/workshop.c')
-rw-r--r--src/workshop.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/workshop.c b/src/workshop.c
index 41ee3d4cbf..143f77914a 100644
--- a/src/workshop.c
+++ b/src/workshop.c
@@ -33,7 +33,6 @@
#include "vim.h"
#include "version.h"
-#include "gui_beval.h"
#include "workshop.h"
void workshop_hotkeys(Boolean);
@@ -48,7 +47,7 @@ static char *append_selection(int, char *, int *, int *);
static void load_buffer_by_name(char *, int);
static void load_window(char *, int lnum);
static void warp_to_pc(int);
-#ifdef FEAT_BEVAL
+#ifdef FEAT_BEVAL_GUI
void workshop_beval_cb(BalloonEval *, int);
static int computeIndex(int, char_u *, int);
#endif
@@ -208,7 +207,7 @@ workshop_load_file(
wstrace("workshop_load_file(%s, %d)\n", filename, line);
#endif
-#ifdef FEAT_BEVAL
+#ifdef FEAT_BEVAL_GUI
bevalServers |= BEVAL_WORKSHOP;
#endif
@@ -1497,7 +1496,7 @@ fixAccelText(
return NULL;
}
-#ifdef FEAT_BEVAL
+#ifdef FEAT_BEVAL_GUI
void
workshop_beval_cb(
BalloonEval *beval,