diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-09-11 12:30:29 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-11-02 11:01:58 +0100 |
commit | 08fe10010ab438451d976e8fb412c3034d9ffeed (patch) | |
tree | b6983e1ff416824db5b08d47cc6c473ba32d4f1b /src/nvim/highlight.c | |
parent | eb509dc7c52cba4e837f4500dc28b0519d1fc11d (diff) | |
download | rneovim-08fe10010ab438451d976e8fb412c3034d9ffeed.tar.gz rneovim-08fe10010ab438451d976e8fb412c3034d9ffeed.tar.bz2 rneovim-08fe10010ab438451d976e8fb412c3034d9ffeed.zip |
terminal: enable pass through indexed colors to TUI
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index 83ee89b2a1..8564737ea2 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -611,6 +611,14 @@ Dictionary hlattrs2dict(HlAttrs ae, bool use_rgb) } if (use_rgb) { + if (mask & HL_FG_INDEXED) { + PUT(hl, "fg_indexed", BOOLEAN_OBJ(true)); + } + + if (mask & HL_BG_INDEXED) { + PUT(hl, "bg_indexed", BOOLEAN_OBJ(true)); + } + if (ae.rgb_fg_color != -1) { PUT(hl, "foreground", INTEGER_OBJ(ae.rgb_fg_color)); } |