aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-26 11:59:59 +0200
committerGitHub <noreply@github.com>2017-04-26 11:59:59 +0200
commit0b59f988f447e23af692d972a83989156c6aad02 (patch)
treee7fba1e2be738d0a89d9aafdfb1ae0c92586af05 /src/nvim/ui.h
parent7e571bca5d5e00e9e33e266b983a48bb4014183f (diff)
parent6944abad2f3f443027af1966a2a310034d2179b2 (diff)
downloadrneovim-0b59f988f447e23af692d972a83989156c6aad02.tar.gz
rneovim-0b59f988f447e23af692d972a83989156c6aad02.tar.bz2
rneovim-0b59f988f447e23af692d972a83989156c6aad02.zip
Merge #6583 from justinmk/ui-tabline
Diffstat (limited to 'src/nvim/ui.h')
-rw-r--r--src/nvim/ui.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nvim/ui.h b/src/nvim/ui.h
index fcf52ac9e1..9338ab3ea3 100644
--- a/src/nvim/ui.h
+++ b/src/nvim/ui.h
@@ -8,6 +8,14 @@
#include "api/private/defs.h"
#include "nvim/buffer_defs.h"
+typedef enum {
+ kUICmdline = 0,
+ kUIPopupmenu,
+ kUITabline,
+ kUIWildmenu,
+} UIWidget;
+#define UI_WIDGETS (kUIWildmenu + 1)
+
typedef struct {
bool bold, underline, undercurl, italic, reverse;
int foreground, background, special;
@@ -16,7 +24,8 @@ typedef struct {
typedef struct ui_t UI;
struct ui_t {
- bool rgb, pum_external;
+ bool rgb;
+ bool ui_ext[UI_WIDGETS]; ///< Externalized widgets
int width, height;
void *data;
void (*resize)(UI *ui, int rows, int columns);