mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.1609: the user cannot easily close a popup window
Problem: The user cannot easily close a popup window. Solution: Add the "close" property. (mostly by Masato Nishihata, closes #4601)
This commit is contained in:
@@ -1996,6 +1996,12 @@ typedef enum {
|
||||
POPPOS_CENTER
|
||||
} poppos_T;
|
||||
|
||||
typedef enum {
|
||||
POPCLOSE_NONE,
|
||||
POPCLOSE_BUTTON,
|
||||
POPCLOSE_CLICK
|
||||
} popclose_T;
|
||||
|
||||
# define POPUPWIN_DEFAULT_ZINDEX 50
|
||||
# define POPUPMENU_ZINDEX 100
|
||||
# define POPUPWIN_DIALOG_ZINDEX 200
|
||||
@@ -2920,6 +2926,7 @@ struct window_S
|
||||
colnr_T w_popup_mincol; // close popup if cursor before this col
|
||||
colnr_T w_popup_maxcol; // close popup if cursor after this col
|
||||
int w_popup_drag; // allow moving the popup with the mouse
|
||||
popclose_T w_popup_close; // allow closing the popup with the mouse
|
||||
list_T *w_popup_mask; // list of lists for "mask"
|
||||
|
||||
# if defined(FEAT_TIMERS)
|
||||
|
Reference in New Issue
Block a user