From c3719bd87beca9f72d2e9f11e36d561c2c3b57b0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 18 Nov 2017 22:13:31 +0100 Subject: 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. --- src/workshop.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/workshop.c') 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, -- cgit v1.2.3