From 08fe10010ab438451d976e8fb412c3034d9ffeed Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 11 Sep 2019 12:30:29 +0200 Subject: terminal: enable pass through indexed colors to TUI --- src/nvim/highlight.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim/highlight.c') 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)); } -- cgit