comparison src/workshop.c @ 12871:1a450ce6980c v8.0.1312

patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI commit https://github.com/vim/vim/commit/c3719bd87beca9f72d2e9f11e36d561c2c3b57b0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 18 22:13:31 2017 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Nov 2017 22:15:05 +0100
parents 68d7bc045dbe
children 2ad722003b36
comparison
equal deleted inserted replaced
12870:0469872186f5 12871:1a450ce6980c
31 31
32 #include "integration.h" /* <EditPlugin/integration.h> */ 32 #include "integration.h" /* <EditPlugin/integration.h> */
33 33
34 #include "vim.h" 34 #include "vim.h"
35 #include "version.h" 35 #include "version.h"
36 #include "gui_beval.h"
37 #include "workshop.h" 36 #include "workshop.h"
38 37
39 void workshop_hotkeys(Boolean); 38 void workshop_hotkeys(Boolean);
40 39
41 static Boolean isShowing(int); 40 static Boolean isShowing(int);
46 static char *get_selection(buf_T *); 45 static char *get_selection(buf_T *);
47 static char *append_selection(int, char *, int *, int *); 46 static char *append_selection(int, char *, int *, int *);
48 static void load_buffer_by_name(char *, int); 47 static void load_buffer_by_name(char *, int);
49 static void load_window(char *, int lnum); 48 static void load_window(char *, int lnum);
50 static void warp_to_pc(int); 49 static void warp_to_pc(int);
51 #ifdef FEAT_BEVAL 50 #ifdef FEAT_BEVAL_GUI
52 void workshop_beval_cb(BalloonEval *, int); 51 void workshop_beval_cb(BalloonEval *, int);
53 static int computeIndex(int, char_u *, int); 52 static int computeIndex(int, char_u *, int);
54 #endif 53 #endif
55 static char *fixAccelText(char *); 54 static char *fixAccelText(char *);
56 static void addMenu(char *, char *, char *); 55 static void addMenu(char *, char *, char *);
206 #ifdef WSDEBUG_TRACE 205 #ifdef WSDEBUG_TRACE
207 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE)) 206 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
208 wstrace("workshop_load_file(%s, %d)\n", filename, line); 207 wstrace("workshop_load_file(%s, %d)\n", filename, line);
209 #endif 208 #endif
210 209
211 #ifdef FEAT_BEVAL 210 #ifdef FEAT_BEVAL_GUI
212 bevalServers |= BEVAL_WORKSHOP; 211 bevalServers |= BEVAL_WORKSHOP;
213 #endif 212 #endif
214 213
215 load_window(filename, line); 214 load_window(filename, line);
216 } 215 }
1495 } 1494 }
1496 else 1495 else
1497 return NULL; 1496 return NULL;
1498 } 1497 }
1499 1498
1500 #ifdef FEAT_BEVAL 1499 #ifdef FEAT_BEVAL_GUI
1501 void 1500 void
1502 workshop_beval_cb( 1501 workshop_beval_cb(
1503 BalloonEval *beval, 1502 BalloonEval *beval,
1504 int state) 1503 int state)
1505 { 1504 {