diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-11-21 13:11:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 13:11:17 +0100 |
commit | 3c2402e5c2641be27e8a526d78c2e0e544ec9cf8 (patch) | |
tree | a0b9569d5514a25a2f1bc03daa943211dcb0343c /src/nvim/highlight_defs.h | |
parent | 97ffa158aa9ae6c80a48b3ceea91270f0a179743 (diff) | |
parent | a4986ab47f4561ca82581b1a5f7c21004b05cee9 (diff) | |
download | rneovim-3c2402e5c2641be27e8a526d78c2e0e544ec9cf8.tar.gz rneovim-3c2402e5c2641be27e8a526d78c2e0e544ec9cf8.tar.bz2 rneovim-3c2402e5c2641be27e8a526d78c2e0e544ec9cf8.zip |
Merge pull request #13250 from bfredl/missinglink
allow nvim_set_hl to break existing links
Diffstat (limited to 'src/nvim/highlight_defs.h')
-rw-r--r-- | src/nvim/highlight_defs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/highlight_defs.h b/src/nvim/highlight_defs.h index 6a5c593ab1..2bda094d8e 100644 --- a/src/nvim/highlight_defs.h +++ b/src/nvim/highlight_defs.h @@ -22,6 +22,8 @@ typedef enum { HL_NOCOMBINE = 0x80, HL_BG_INDEXED = 0x0100, HL_FG_INDEXED = 0x0200, + HL_DEFAULT = 0x0400, + HL_GLOBAL = 0x0800, } HlAttrFlags; /// Stores a complete highlighting entry, including colors and attributes @@ -188,13 +190,16 @@ typedef struct { int ns_id; int syn_id; } ColorKey; +#define ColorKey(n, s) (ColorKey) { .ns_id = (int)(n), .syn_id = (s) } typedef struct { int attr_id; int link_id; int version; + bool is_default; } ColorItem; -#define COLOR_ITEM_INITIALIZER { .attr_id = -1, .link_id = -1, .version = -1 } +#define COLOR_ITEM_INITIALIZER { .attr_id = -1, .link_id = -1, \ + .version = -1, .is_default = false } #endif // NVIM_HIGHLIGHT_DEFS_H |