mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
This commit is contained in:
13
src/gui.h
13
src/gui.h
@@ -237,6 +237,16 @@ typedef long guicolor_T; /* handle for a GUI color; for X11 this should
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef VIMDLL
|
||||
// Use spawn when GUI is starting.
|
||||
# define GUI_MAY_SPAWN
|
||||
|
||||
// Uncomment the next definition if you want to use the `:gui` command on
|
||||
// Windows. It uses `:mksession` to inherit the session from vim.exe to
|
||||
// gvim.exe. So, it doesn't work perfectly. (EXPERIMENTAL)
|
||||
//# define EXPERIMENTAL_GUI_CMD
|
||||
#endif
|
||||
|
||||
typedef struct Gui
|
||||
{
|
||||
int in_focus; /* Vim has input focus */
|
||||
@@ -245,6 +255,9 @@ typedef struct Gui
|
||||
int shell_created; /* Has the shell been created yet? */
|
||||
int dying; /* Is vim dying? Then output to terminal */
|
||||
int dofork; /* Use fork() when GUI is starting */
|
||||
#ifdef GUI_MAY_SPAWN
|
||||
int dospawn; /* Use spawn() when GUI is starting */
|
||||
#endif
|
||||
int dragged_sb; /* Which scrollbar being dragged, if any? */
|
||||
win_T *dragged_wp; /* Which WIN's sb being dragged, if any? */
|
||||
int pointer_hidden; /* Is the mouse pointer hidden? */
|
||||
|
Reference in New Issue
Block a user