From e11dd1110fd018d9bd6d42460186ed69037f8651 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Mon, 9 Sep 2019 22:06:49 +0200 Subject: terminal: fix rgb rendering of palette colors simplify handling of default colors nvim is always true color internally, remove ui_rgb_attached() check. Fix "runtime termguicolors" test. The test actually reflected broken behavior in (parent) nvim: nvim_ui_set_option("rgb", true) was not respected by existing :terminal instances, so all 16-palette colors became dark blue. --- test/functional/terminal/tui_spec.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/functional/terminal/tui_spec.lua') diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 5bd39c72f3..3d9623a158 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -640,11 +640,11 @@ describe('TUI', function() screen:set_option('rgb', true) screen:set_default_attr_ids({ [1] = {reverse = true}, - [2] = {foreground = 13}, + [2] = {foreground = tonumber('0x4040ff')}, [3] = {bold = true, reverse = true}, [4] = {bold = true}, - [5] = {reverse = true, foreground = 4}, - [6] = {foreground = 4}, + [5] = {reverse = true, foreground = tonumber('0xe0e000')}, + [6] = {foreground = tonumber('0xe0e000')}, [7] = {reverse = true, foreground = Screen.colors.SeaGreen4}, [8] = {foreground = Screen.colors.SeaGreen4}, [9] = {bold = true, foreground = Screen.colors.Blue1}, -- cgit