diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-02-13 21:57:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 21:57:15 +0100 |
commit | 0daa45bd4403211e893ea774121a36e206abe0ad (patch) | |
tree | da2298632595dc2d42c921a323ebd63978c27b82 /src/nvim/ui.h | |
parent | 0f1bc5ddceb50ca8f96d91aabf8157d9758af0cd (diff) | |
parent | 6e5cb0debd23693175bd05409d3f1af4015567df (diff) | |
download | rneovim-0daa45bd4403211e893ea774121a36e206abe0ad.tar.gz rneovim-0daa45bd4403211e893ea774121a36e206abe0ad.tar.bz2 rneovim-0daa45bd4403211e893ea774121a36e206abe0ad.zip |
Merge pull request #7759 from bfredl/ext_options
ui: refactor external widget options
Diffstat (limited to 'src/nvim/ui.h')
-rw-r--r-- | src/nvim/ui.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/nvim/ui.h b/src/nvim/ui.h index 60adcb974f..48896a6a3f 100644 --- a/src/nvim/ui.h +++ b/src/nvim/ui.h @@ -13,14 +13,22 @@ typedef enum { kUIPopupmenu, kUITabline, kUIWildmenu, -} UIWidget; -#define UI_WIDGETS (kUIWildmenu + 1) + kUIExtCount, +} UIExtension; + +EXTERN const char *ui_ext_names[] INIT(= { + "ext_cmdline", + "ext_popupmenu", + "ext_tabline", + "ext_wildmenu" +}); + typedef struct ui_t UI; struct ui_t { bool rgb; - bool ui_ext[UI_WIDGETS]; ///< Externalized widgets + bool ui_ext[kUIExtCount]; ///< Externalized widgets int width, height; void *data; #ifdef INCLUDE_GENERATED_DECLARATIONS |