Mercurial > vim
diff src/vim.h @ 28778:a8c2bd5fc727 v8.2.4913
patch 8.2.4913: popup_hide() does not always have effect
Commit: https://github.com/vim/vim/commit/27724251bc73f97b55240731f4316ee1b4eac1c5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 8 15:00:04 2022 +0100
patch 8.2.4913: popup_hide() does not always have effect
Problem: Popup_hide() does not always have effect.
Solution: Add the POPF_HIDDEN_FORCE flag. (closes https://github.com/vim/vim/issues/10376)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 08 May 2022 16:15:05 +0200 |
parents | d770568e6c98 |
children | d0241e74bfdb |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -631,15 +631,16 @@ extern int (*dyn_libintl_wputenv)(const // Values for w_popup_flags. #define POPF_IS_POPUP 0x01 // this is a popup window #define POPF_HIDDEN 0x02 // popup is not displayed -#define POPF_CURSORLINE 0x04 // popup is highlighting at the cursorline -#define POPF_ON_CMDLINE 0x08 // popup overlaps command line -#define POPF_DRAG 0x10 // popup can be moved by dragging border -#define POPF_DRAGALL 0x20 // popup can be moved by dragging everywhere -#define POPF_RESIZE 0x40 // popup can be resized by dragging -#define POPF_MAPPING 0x80 // mapping keys -#define POPF_INFO 0x100 // used for info of popup menu -#define POPF_INFO_MENU 0x200 // align info popup with popup menu -#define POPF_POSINVERT 0x400 // vertical position can be inverted +#define POPF_HIDDEN_FORCE 0x04 // popup is explicitly set to not be displayed +#define POPF_CURSORLINE 0x08 // popup is highlighting at the cursorline +#define POPF_ON_CMDLINE 0x10 // popup overlaps command line +#define POPF_DRAG 0x20 // popup can be moved by dragging border +#define POPF_DRAGALL 0x40 // popup can be moved by dragging everywhere +#define POPF_RESIZE 0x80 // popup can be resized by dragging +#define POPF_MAPPING 0x100 // mapping keys +#define POPF_INFO 0x200 // used for info of popup menu +#define POPF_INFO_MENU 0x400 // align info popup with popup menu +#define POPF_POSINVERT 0x800 // vertical position can be inverted // flags used in w_popup_handled #define POPUP_HANDLED_1 0x01 // used by mouse_find_win()