Mercurial > vim
diff src/vim.h @ 17225:09fa437d33d8 v8.1.1612
patch 8.1.1612: cannot show an existing buffer in a popup window
commit https://github.com/vim/vim/commit/5b8cfedfbd19a71a30c73cf44b0aec3da7fc1a24
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 30 22:16:10 2019 +0200
patch 8.1.1612: cannot show an existing buffer in a popup window
Problem: Cannot show an existing buffer in a popup window.
Solution: Support buffer number argument in popup_create().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Jun 2019 22:30:05 +0200 |
parents | f16cee6adf29 |
children | 6e756ad5ef1a |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -614,8 +614,14 @@ extern int (*dyn_libintl_wputenv)(const #define VALID_TOPLINE 0x80 // w_topline is valid (for cursor position) // Values for w_popup_flags. -#define POPF_HIDDEN 1 // popup is not displayed -#define POPF_HANDLED 2 // popup was just redrawn or filtered +#define POPF_IS_POPUP 1 // this is a popup window +#define POPF_HIDDEN 2 // popup is not displayed +#define POPF_HANDLED 4 // popup was just redrawn or filtered +#ifdef FEAT_TEXT_PROP +# define WIN_IS_POPUP(wp) ((wp)->w_popup_flags != 0) +#else +# define WIN_IS_POPUP(wp) 0 +#endif /* * Terminal highlighting attribute bits.