terminal: enable pass through indexed colors to TUI

This commit is contained in:
Björn Linse
2019-09-11 12:30:29 +02:00
parent eb509dc7c5
commit 08fe10010a
4 changed files with 34 additions and 14 deletions

View File

@@ -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));
}